lib/generators/builder/scaffold/templates/index.html.builder in we_bridge-html_builder-0.1.6 vs lib/generators/builder/scaffold/templates/index.html.builder in we_bridge-html_builder-0.1.7
- old
+ new
@@ -15,12 +15,12 @@
@<%= plural_table_name %>.each do |<%= singular_table_name %>|
m.tr do
<% attributes.each do |attribute| -%>
m.td '<%= singular_table_name %>.<%= attribute.name %>'
<% end -%>
- m.td << link_to('Show', '<%= singular_table_name %>')
- m.td << link_to('Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>))
- m.td << link_to('Destroy', <%= singular_table_name %>, data: { confirm: 'Are you sure?' }, method: :delete)
+ m.td { m << link_to('Show', '<%= singular_table_name %>') }
+ m.td { m << link_to('Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)) }
+ m.td { m << link_to('Destroy', <%= singular_table_name %>, data: { confirm: 'Are you sure?' }, method: :delete) }
end
end
end
end