Sha256: 2124b1a1634f24eff4729d33b55ee830348ec51442d3fe8898115871b3b37ea3

Contents?: true

Size: 573 Bytes

Versions: 4

Compression:

Stored size: 573 Bytes

Contents

= render :partial => 'dash/shared/filter'
%table{ :cellpadding => '0', :cellspacing => '0' }
  %tr
    %th 
      = '#'
    %th
      = @model.human_attribute_name('created_at')     
    %th.actions
      = t('dash.grid.actions')
  - @records.each do |record|
    %tr
      %td
        = record.id
      %td
        = l(record.created_at)
      %td.actions
        = link_to(t('dash.grid.edit'), [:dash, record])
        = link_to(t('dash.grid.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.4 lib/generators/dash/templates/index.erb
rails_dash-0.0.4 test/dummy/app/views/dash/photos/index.html.haml
rails_dash-0.0.3 lib/generators/dash/templates/index.erb
rails_dash-0.0.3 test/dummy/app/views/dash/photos/index.html.haml