Gridion

License: MIT-LICENSE

Features

Use grid helper to render table with various options.


grid(@patents, :object_class=>Patent, :columns=>%w(coverage_countries_serial patent_number_serial title grant_date status availability_serial), :actions=>nil, :paginate=>false, :skip_field_class=>true, :render_empty_grid=>true, :object_class=>Patent)

Parameters

render_empty_grid

Render grid even if there is no data, you need to use that with :object__class as there is no model the grid could use to extract metadata against.

paginate

Turns on pagination (Kaminari required)

skip_field_class

Turn off all field (th/td) column class name