Convert Rails 3 project to use jQuery

Posted on the October 12th, 2010 under Computers,Linux,Mac by Martin Bergek

Rails 3 supports unobtrusive javascript to decouple the content from the logic in a way similar to how CSS has helped web designers to double the content from the layout.

By default Rails 3 comes with Prototype. But more and more people are switching to jQuery. The project Rails-3-jQuery on Github simplifies the process of switching out the Prototype support to jQuery. It includes jRails that provides drop-in replacements for Prototype and Scriptaculous helper methods to make it a seamless transition.

To update a project, just issue the following command in the project root

rake rails:template
   LOCATION=http://github.com/lleger/Rails-3-jQuery/raw/master/jquery.rb

For more information on the project, check the project page on Github.

Share

2 Responses to 'Convert Rails 3 project to use jQuery'

  1. June 15, 2011 at 08:36
    Intranet Solutions
  2. July 21, 2011 at 05:40
    Home security monitoring