Having always used the Prototype helpers with Rails, I recently decided to move over to using JQuery. At first I looked at JRails, since it was a drop-in replacement and hence would require minimum effort.
BUT! After reading more about JQuery and playing around with it, it became apparent to me that the best way to use Rails and JQuery together is to handle it all yourself. This might sound like a more complicated, time consuming approach but it's honestly not! I see this approach as giving you two main benefits:
- All your Javascript can be unobtrusive -- this won't be the case with JRails
- You can use JQuery in
.js.erb
templates rather than using RJS templates, which gives you much finer control and is easier for front-end designers who are familiar with JQuery to get to grips with (the indirection of RJS, with it's Page object, is often confusing)
So, I recommend the first thing you do is watch the excellent JQuery Railscasts: http://railscasts.com/episodes/136-jquery. It's only a few minutes long and you'll be amazed at how easy and elegant it is to write AJAX code using JQuery and Rails.
You'll obviously need to get up to speed with JQuery too, but there are many excellent resources out there for this. JQuery is such an desirable skill these days, you'll be really thankful you took this approach.