views:

74

answers:

2

Hi ,

Does Ruby on Rails have a way to use jQuery rather than Prototype under-the-bonnet for its ajax view helpers? (e.g. "link_to_remote")

A: 

In Rails 2.x you might be interested in jRails: http://github.com/aaronchi/jrails

Gordon Isnor
+3  A: 

jRails works for Rails 2, overriding various functions to get the job done. However, Rails 3 allows you to entirely replace the Prototype driver with a jQuery driver of equal precedence.

If you haven't started the project yet, you may want to consider using Rails 3, as the solution is much more complete. That is, if other plugins you need are compatible - see RailsPlugins.org.

Matchu
How solid is it?
Greg
Which one? jRails? I've used it well without a hitch, and it's relatively well-known in the Rails community. No match for the Rails 3 system, but as good at it got until then.
Matchu
Rails 3 is pretty darn solid. All that's missing is gem, plugin support, which is actively being worked on.
Matchu