From 4746f92b137ed22189cd98247d29773807a40a87 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 18 Apr 2013 11:53:31 -0700 Subject: Indent around the scaffold loop --- .../generators/erb/scaffold/templates/index.html.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'railties/lib/rails/generators/erb/scaffold/templates/index.html.erb') diff --git a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb index 854074677a..1606b860dc 100644 --- a/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb +++ b/railties/lib/rails/generators/erb/scaffold/templates/index.html.erb @@ -14,14 +14,14 @@ <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> - -<% attributes.reject(&:password_digest?).each do |attribute| -%> - <%%= <%= singular_table_name %>.<%= attribute.name %> %> -<% end -%> - <%%= link_to 'Show', <%= singular_table_name %> %> - <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %> - <%%= link_to 'Destroy', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' } %> - + + <% attributes.reject(&:password_digest?).each do |attribute| -%> + <%%= <%= singular_table_name %>.<%= attribute.name %> %> + <% end -%> + <%%= link_to 'Show', <%= singular_table_name %> %> + <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %> + <%%= link_to 'Destroy', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' } %> + <%% end %> -- cgit v1.2.3