a plugin base on 2dcJqgrid for rails3 to use jqgrid
This Rails plugin allows you to add jQuery datagrids into your applications.
Following features are supported :
CRUD operations (add, edit, delete and read)
And more …
Install and Uninstall
$ rails plugin install git://github.com/jsy/jqgrid-rails3 $ rake jqgrid:install $ rake jqgrid:uninstall
You can now generate a grid using a command like this one :
$ rails generate jqgrid user id pseudo email firstname
it will create a controller and a view file to the app path,and you must change route to use it ,you can see it in the
You can use it simple,eg;
Copyright © 2010 Anthony Heukmes, released under the MIT license
My gmail account : firstname.lastname@example.org
o Add controller methods to ActionController::Base: jqgrid_post_data_for jqgrid_index_for Now, a grid-enabled controller just needs: COLUMNS = [:name, :email] def index jqgrid_index_for MyModel, params, COLUMNS end def post_data jqgrid_post_data_for MyModel, params, COLUMNS end
Released under the MIT license.