Any jQuery users have an example or info regarding their jQuery integration to rails apps?
I’ve found plenty of tutorials and guides on setting up jQuery and doing some simple UI tasks. But I’d really like to compare my strategies of using jQ’s ajax (etc.) in Ruby on Rails applications with other users.
I am a member of the jQuery team, and I am currently finishing up work
on the first release of jQuery on Rails, a plugin for Rails that
replaces the built-in prototype stuff with jQuery.
It's not a 1:1 API rewrite, but rather an attempt to get the jQuery
philosophy of unobtrusive coding into Rails. I will have a release
ready for RailsConf (and I will be there as well).
I just posted about what I've figured out so far regarding JQuery Ajax
+ Rails here: Crap
I discuss how to build JQuery Ajax calls that can interact with a
RESTful controller method with a respond_to block (you need to add the
correct Accept header to the HTTP request before you send), and how to
write JQuery Javascript via RJS -- for example: