mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Needless fancy structure that did not anything
This commit is contained in:
parent
89979ca8ff
commit
516f148450
1 changed files with 3 additions and 1 deletions
|
@ -13,13 +13,15 @@
|
|||
</thead>
|
||||
|
||||
<tbody>
|
||||
<%%= content_tag_for(:tr, @<%= plural_table_name %>) do |<%= singular_table_name %>| %>
|
||||
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
|
||||
<tr>
|
||||
<% attributes.each do |attribute| -%>
|
||||
<td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
|
||||
<% end -%>
|
||||
<td><%%= link_to 'Show', <%= singular_table_name %> %></td>
|
||||
<td><%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %></td>
|
||||
<td><%%= link_to 'Destroy', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<%% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue