Skip to content
Browse files

Indent around the scaffold loop

  • Loading branch information...
1 parent f038d4c commit 4746f92b137ed22189cd98247d29773807a40a87 @dhh dhh committed Apr 18, 2013
Showing with 8 additions and 8 deletions.
  1. +8 −8 railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
View
16 railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
@@ -14,14 +14,14 @@
<tbody>
<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %>
- <tr>
-<% attributes.reject(&:password_digest?).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>
+ <tr>
+ <% attributes.reject(&:password_digest?).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>

0 comments on commit 4746f92

Please sign in to comment.
Something went wrong with that request. Please try again.