Sha256: 590bfc06a1e36452062c07113e260ea58a25d4109112945621fb9a5412aeaee7

Contents?: true

Size: 654 Bytes

Versions: 5

Compression:

Stored size: 654 Bytes

Contents

<%= grid(@tasks_grid, show_filters: :always) do |g|
  g.column name: 'ID', attribute: 'id', filter: false
  g.column name: 'Title', attribute: 'title'
  g.column name: 'Priority', attribute: 'name',  assoc: :priority
  g.column name: 'Status', attribute: 'name', assoc: :status
  g.column name: 'Project Name', attribute: 'name', assoc: :project
  g.column name: 'Customer', attribute: 'name', assoc: [:project, :customer]
  g.column name: 'Assigned To', attribute: 'name', assoc: :assigned_users do |task|
    task.assigned_users.collect{|user| user.name}.to_sentence
  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/joining_tables/_grid.html.erb
wice_grid-7.1.3 spec/support/test_app/app/views/joining_tables/_grid.html.erb
wice_grid-7.1.2 spec/support/test_app/app/views/joining_tables/_grid.html.erb
wice_grid-7.1.1 spec/support/test_app/app/views/joining_tables/_grid.html.erb
wice_grid-7.1.0 spec/support/test_app/app/views/joining_tables/_grid.html.erb