Jrails and jquery-rails together?

Posted by ecoologic on Stack Overflow See other posts from Stack Overflow or by ecoologic
Published on 2011-03-07T21:43:37Z Indexed on 2011/03/08 0:10 UTC
Read the original article Hit count: 257

I hope you forgive me if I'm a little confused about this.

Jrails rewrites all the helper methods for rjs otherwise in prototype.

Jquery-rails overrides rails.js (so I taught the rjs helpers as well, but I see it's not) and the rest of the libraries in jquery instead of prototype.

Does it means that with just Jquery-rails I can't use rjs at all? Then do these gems work well together and let me completely forget prototype? Is there any disadvantage in using them together?

I read some complaining about the fact that jrails uses jq 1.5 and now there is 1.8, but jquery-rails gives me the last version (is there retro compatibility?), but how will this affect my development (using both the gems together)? I mean have you got some examples of jquery-ui plugins I can't use or I could have problems with?

Any help is appreciated.

Don't get me wrong, I'm not against prototype, just I keep on having conflicts over conflicts using both of them, and I have to chose I pick Jquery.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ruby-on-rails