Sha256: a0688ec64ae409692a2833122586a41d6d748f740dd509f06f2730a478629882

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

- titles link_to('<%= sco_parent_titleized_plural %>', admin_<%= sco_parent_underscored_plural %>_path), '<%= 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 %>)}?"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
schofield-0.0.4 generators/schofield_controller/templates/nested/index.rb
schofield-0.0.3 generators/schofield_controller/templates/nested/index.rb
schofield-0.0.2 generators/schofield_controller/templates/nested/index.rb
schofield-0.0.1 generators/schofield_controller/templates/nested/index.rb