This post is by Rizwan Reza. See footer for more info.
Rails has always been about staying on the cutting edge and Rails 3 is no surprise, UJS implementation in Rails 3 takes benefit of the new HTML5
Let’s see how easy it is to swap jQuery in Rails 3. In the root of a Rails 3 application, run:
Here’s an initializer I got to know from Yehuda that you can define in
With that set, Rails is now unaware of Prototype, all of the helpers with
:remote => true will be grabbed by rails.js and worked through jQuery. You might also want to remove the Prototype libraries inside
[post by] Rizwan Reza is a passionate, self-taught developer and designer who’s been working with Rails since early 2005. He had his first Rails patch accepted in mid 2008, and has been contributing code and fixes ever since. Rizwan focuses on the start-to-finish product experience, all the way from branding to the application backend. Get in touch with him at contact