lib/generators/haml/scaffold/templates/index.haml.erb in rails3-generators-0.3.3 vs lib/generators/haml/scaffold/templates/index.haml.erb in rails3-generators-0.4.0
- old
+ new
@@ -7,17 +7,17 @@
<% end -%>
%th
%th
%th
-- @<%= plural_name %>.each do |<%= singular_name %>|
- %tr
+ - @<%= plural_name %>.each do |<%= singular_name %>|
+ %tr
<% for attribute in attributes -%>
- %td= <%= singular_name %>.<%= attribute.name %>
+ %td= <%= singular_name %>.<%= attribute.name %>
<% end -%>
- %td= link_to 'Show', <%= singular_name %>
- %td= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>)
- %td= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
+ %td= link_to 'Show', <%= singular_name %>
+ %td= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>)
+ %td= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
%br
= link_to 'New <%= singular_name %>', new_<%= singular_name %>_path