Example uses RoR ajax protoype helpers - How do I do this in JQuery?

This page shows you how to hang with RoR + Prototype. I wonder if anyone will show how to do this in JQuery insteaad

http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails

+1


source to share


3 answers


jRails has actually done most of the work of rewriting the rails javascript helpers in jQuery. You can simply set it as a gem.



http://ennerchi.com/projects/jrails

+2


source


You will need to get rid of all the RJS and recode it to jQuery. It's a little tricky to change this example, but you should start:



Auto populate select boxes with jQuery & AJAX

+1


source


Dan is right. Just use Jrails. This is your easiest bet.

If you want to code it in jQuery yourself, you can learn how to replace rjs templates with your own jQuery code with this nice railscast .

+1


source







All Articles