Sha256: 515ef77330e714843c09a89c992f06ee37fca92c0f338e55698b682209b4b563

Contents?: true

Size: 564 Bytes

Versions: 4

Compression:

Stored size: 564 Bytes

Contents

= render :partial => 'dash/shared/filter'
%table{ :cellpadding => '0', :cellspacing => '0' }
  %tr
    %th 
      = '#'
    %th
      = @model.human_attribute_name('created_at')     
    %th.actions
      = t('global.actions')
  - @records.each do |record|
    %tr
      %td
        = record.id
      %td
        = l(record.created_at)
      %td.actions
        = link_to(t('global.edit'), [:dash, record])
        = link_to(t('global.destroy'), [:dash, record], :method => :delete)
= render :partial => 'dash/shared/pager', :locals => { :collection => @records }

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
rails_dash-0.0.2 lib/generators/dash/templates/index.erb
rails_dash-0.0.2 test/dummy/app/views/dash/photos/index.html.haml
rails_dash-0.0.1 lib/generators/dash/templates/index.erb
rails_dash-0.0.1 test/dummy/app/views/dash/photos/index.html.haml