generators/schofield_controller/templates/nested/index.rb in schofield-0.0.4 vs generators/schofield_controller/templates/nested/index.rb in schofield-0.0.5
- old
+ new
@@ -1,5 +1,5 @@
-- titles link_to('<%= sco_parent_titleized_plural %>', admin_<%= sco_parent_underscored_plural %>_path), '<%= sco_titleized_plural %>'
+- titles link_to('<%= sco_parent_titleized_plural %>', admin_<%= sco_parent_underscored_plural %>_path), link_to(@<%= sco_parent_underscored %>, admin_<%= sco_parent_underscored %>_path(@<%= sco_parent_underscored %>)), '<%= sco_titleized_plural %>'
%p= link_to('Add new <%= sco_humanized %>', new_admin_<%= sco_parent_underscored %>_<%= sco_underscored %>_path)
- if @<%= sco_underscored_plural %>.any?
\ No newline at end of file