Sha256: 9aa314ba2719ffb374603e935397834b8299747f9498b393d2e69fcc334b1730

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

<%= grid(@tasks_grid) do |g|
  g.column name: 'ID' do |task|
    task.id
  end
  g.column name: 'Title'  do |task|
    task.title
  end
  g.column  name: 'Description' do |task|
    task.description
  end
  g.column  name: 'Archived' do |task|
    task.archived? ? 'Yes' : 'No'
  end
  g.column name: 'Added' do |task|
    task.created_at.to_fs(:short)
  end
  g.column   do |task|
    link_to('Edit', edit_task_path(task))
  end
end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wice_grid-7.1.4 spec/support/test_app/app/views/basics2/_grid.html.erb
wice_grid-7.1.3 spec/support/test_app/app/views/basics2/_grid.html.erb
wice_grid-7.1.2 spec/support/test_app/app/views/basics2/_grid.html.erb
wice_grid-7.1.1 spec/support/test_app/app/views/basics2/_grid.html.erb
wice_grid-7.1.0 spec/support/test_app/app/views/basics2/_grid.html.erb