Using jQuery with Rails

There’s a nice plugin which acts as a dropin replacement for prototype and scriptaculous in Rails. It’s called jRails and is just a simple plugin. It replaces all the helper methods to use jQuery instead of prototype and scriptaculous.

Get it here: http://ennerchi.com/projects/jrails

Or install it with this command:

./script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails

and copy all the javascripts to your apps public/javascripts directory.

That’s it. You are now rolling with jQuery and jQuery UI goodness.

Leave a Reply