Gridify - A Ruby wrapper and Rails plugin for jqGrid
Gridify is a Ruby wrapper and Rails plugin for jqGrid.
Gridify defines a simplified, more consistent API for jqGrid rather than directly emulate the jqGrid api and options in Ruby.
Gridify tries to respect the MVC (model-view-controller) architecture of your application. This is challenging because grid features span all three areas: it’s clearly part of the "view" as it mostly resides in the browser; columns in the table often directly map to columns in the model (database); and grid’s ajax requests are handled by controllers. Gridfy gives you some flexibility in managing grids within MVC.
Lets say we have an ActiveRecord model "Note" which we want to display in a grid.
class Note < ActiveRecord::Base
In the NotesController,
records = Note.find_for_grid :grid, params
render :xml => Note.grid.encode_records(records)
@grid = Note.grid
In the app/views/notes/index.html.erb,
<%= @grid %>
The project source code and more documentation is on github at