Sha256: 35dd5363a68e40f5f855a92ce41c323f9e726b9665a651a5a25f6ef8835c3788

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

= options(true)
%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
        %a{ :href => main_app.url_for([:dash, record]) }
          = t('dash.grid.edit')
        %a{ :href => main_app.url_for([:dash, record]), :'data-method' => 'delete' }
          = t('dash.grid.destroy')
= pager(@records)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_dash-0.0.6 lib/generators/dash/templates/index.erb
rails_dash-0.0.5 lib/generators/dash/templates/index.erb