Topic: what the best solution for jquery, javascript helper on Rails3?

Hi,

I'm trying to use jQuery with Rails 3, there are some plugins to use jquery-ujs, jquery-rails. Everything is okay until I want to add some ajax to my application. I use .js.rjs file and javascript helper such as: page.insert_html, page.replace_html.... but no success, javascript helpers don't work with jQuery.

I found jRails a plugin that make javascript helpers work perfectly, just one thing: jRails is for Rails 2 and every time I run rake command, I see some deprecate notification, also jRails was last updated 2009.

so currently I'm still using jRails for my Rails 3 app. Is there any better solutions? any other up-to-date jQuery plugin that can work well with js helpers in Rails 3?

Thanks,

Giang, Nguyen Duc
Email: ndgiang84@gmail.com
Website: http://xiga.info
Please recommend for me on WorkingWithRails if you find my post useful: http://workingwithrails.com/person/1849 … -duc-giang

Re: what the best solution for jquery, javascript helper on Rails3?

Why not to use use the same 'replace' methods but coming from jQuery ? You can do the same things with jQuery as with Ajax. Just have a look into jQuery API.

Last edited by Javix (2011-03-08 05:36:14)

Re: what the best solution for jquery, javascript helper on Rails3?

ajax and rails script for populating dropdown list values based on selected radio button on rails 3