I’m still new to web programming and Rails in general. From what I understand, Prototype and JQuery are both Javascript frameworks to achieve similar goals. I love JQuery, and I want to use it! From what I understand, Prototype is included with Rails. My question is:
- Can JQuery replace all the functionalities (such as (and most importantly to me)
link_to :remote)) provided by Prototype?
I am using Rails 3.
(PS – I would not mind keeping them both (although I don’t really have a use for Prototype if JQuery can handle its functions), but I am having a lot of problems with Prototype interfering with JQuery. E.g. If I ‘src’ the JQuery file first, Prototype doesn’t work (for my link_to :remote. But if I ‘src’ Prototype first, JQuery doesn’t work at all!)
After upgrading to Rails 3.1, which has JQuery replacing Prototype by default, I can say yes… JQuery works with all the Prototype features, such as
:remote => truethat I needed.