|
|
Add jQuery datagrids to your Rails applications
Update : added support for subgrids. Have a look at the last example!
The jQuery grid plugin is an amazing Javascript project providing multi-functions Ajax datagrids for your web applications. With the 2dcJqgrid Rails plugin, you can now add these datagrids to your Ruby on Rails applications with just a few lines of code.
If you don't like the look & feel of this demo, you can easily customize it using jQuery themes.
Communications between your grids and the server will use the JSON format to exchange data.
The source code of this demo application is available on GitHub.
This solution is compatible with most of web browsers (even Internet Explorer 6 !!).
If you have any comments or suggestions, please post them here.
Installation
Inside your Rails application :
<div class="code">$ ./script/plugin install git://github.com/ahe/2dc_jqgrid.git
$ ./script/plugin install git://github.com/thoughtbot/squirrel.git
./script/generate scaffold user pseudo:string firstname:string lastname:string email:string role:string |
|