generators/schofield_controller/templates/nested/index.rb in schofield-0.1.1 vs generators/schofield_controller/templates/nested/index.rb in schofield-0.1.2
- old
+ new
@@ -1 +1 @@
-%p= link_to('Add new <%= sco_humanized %>', new_admin_<%= sco_parent_underscored %>_<%= sco_underscored %>_path)
+%p= link_to('Add new <%= sco_humanized %>', new_admin_<%= sco_parent.first[:underscored] %>_<%= sco_underscored %>_path)
\ No newline at end of file