generators/schofield_controller/templates/nested/index.rb in schofield-0.0.5 vs generators/schofield_controller/templates/nested/index.rb in schofield-0.0.6

- old
+ new

@@ -1,21 +1,5 @@ - 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? - - %table#<%= sco_underscored_plural %> - - = render :partial => 'shared/admin/table_header', :locals => { :columns => %w( Title ), :buttons => 3 } - - %tbody - - - @<%= sco_underscored_plural %>.each do |<%= sco_underscored %>| - - %tr - - %td&= <%= sco_underscored %> - - %td= link_to_button 'Show', admin_<%= sco_underscored %>_path(<%= sco_underscored %>) - %td= link_to_button 'Edit', edit_admin_<%= sco_underscored %>_path(<%= sco_underscored %>) - %td= link_to_button 'Delete', admin_<%= sco_underscored %>_path(<%= sco_underscored %>), :method => 'delete', :confirm => "Are you sure you want to delete the <%= sco_humanized %>: #{h(<%= sco_underscored %>)}?" += render :partial => 'shared/<%= sco_underscored_plural %>', :object => @<%= sco_underscored_plural %> \ No newline at end of file