|
1 |
| -<div id="<%%= dom_id <%= singular_table_name %> %>"> |
| 1 | +<div id="<%%= dom_id <%= singular_name %> %>"> |
2 | 2 | <% attributes.reject(&:password_digest?).each do |attribute| -%>
|
3 | 3 | <p class="my-5">
|
4 | 4 | <strong class="block font-medium mb-1"><%= attribute.human_name %>:</strong>
|
5 | 5 | <% if attribute.attachment? -%>
|
6 |
| - <%%= link_to <%= singular_table_name %>.<%= attribute.column_name %>.filename, <%= singular_table_name %>.<%= attribute.column_name %> if <%= singular_table_name %>.<%= attribute.column_name %>.attached? %> |
| 6 | + <%%= link_to <%= singular_name %>.<%= attribute.column_name %>.filename, <%= singular_name %>.<%= attribute.column_name %> if <%= singular_name %>.<%= attribute.column_name %>.attached? %> |
7 | 7 | <% elsif attribute.attachments? -%>
|
8 |
| - <%% <%= singular_table_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %> |
| 8 | + <%% <%= singular_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %> |
9 | 9 | <div><%%= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %> %></div>
|
10 | 10 | <%% end %>
|
11 | 11 | <% else -%>
|
12 |
| - <%%= <%= singular_table_name %>.<%= attribute.column_name %> %> |
| 12 | + <%%= <%= singular_name %>.<%= attribute.column_name %> %> |
13 | 13 | <% end -%>
|
14 | 14 | </p>
|
15 | 15 |
|
16 | 16 | <% end -%>
|
17 | 17 | <%% if action_name != "show" %>
|
18 |
| - <%%= link_to "Show this <%= human_name.downcase %>", <%= singular_table_name %>, class: "rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %> |
19 |
| - <%%= link_to 'Edit this <%= human_name.downcase %>', edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %> |
| 18 | + <%%= link_to "Show this <%= human_name.downcase %>", <%= singular_name %>, class: "rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %> |
| 19 | + <%%= link_to 'Edit this <%= human_name.downcase %>', edit_<%= singular_name %>_path(<%= singular_name %>), class: "rounded-lg py-3 ml-2 px-5 bg-gray-100 inline-block font-medium" %> |
20 | 20 | <hr class="mt-6">
|
21 | 21 | <%% end %>
|
22 | 22 | </div>
|
0 commit comments