Permalink
Browse files

Fix indention issue in generated template

  • Loading branch information...
dhh committed Jan 5, 2013
1 parent cbabd1b commit f2c0e57581eb513d19f7f7ab8268c1804870a85c
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/generators/erb/scaffold/templates/index.html.erb
@@ -14,9 +14,9 @@
<tbody>
<%%= content_tag_for(:tr, @<%= plural_table_name %>) do |<%= singular_table_name %>| %>
- <% attributes.each do |attribute| -%>
+<% attributes.each do |attribute| -%>
<td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td>
- <% end -%>
+<% 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>

0 comments on commit f2c0e57

Please sign in to comment.