JRails is just a drop in replacement for PrototypeHelper in Rails
releases prior to 3.
Rails 3 looks is phasing out PrototypeHelper in favour of UJS. The
goal of UJS is to eliminate all inline Javascript. The end result of
this is that all your favourite javascript generating helpers will be
deprecated. link_to_remote, form_remote_for, link_to_function, and the
rest will be gone.
Yes. a driver file will need to be created for each of mootools,
jquery or any other javascript frame work to use the new :remote =>
true syntax of Rails 3. But they're pretty simple files that don't
change too much from the prototype example that ships with rails
("rails.js").
You can use the new prototype_legacy_helper or a slightly modified
JRails with Rails 3 to restore the old way of doing Javascript in
Rails. But it wouldn't be the Rails 3 way of doing things.
By the time Rails 3 gets a proper release there will be drivers for
all the popular Javascript frameworks.
On Feb 11, 7:51 pm, Greg Donald <[email protected]> wrote:
> On Thu, Feb 11, 2010 at3:33 PM, overture <[email protected]> wrote:
> > I just did a post on using UJS inRails3-
> >http://therailworld.com/posts/26-Using-Prototype-and-JQuery-with-Rail...
>
> <snip>
> so if you wanted to use JQuery or MooTools you would need to do make
> your own solution.
> </snip>
>
> Wrong. There is JRails which uses jQuery and provides all same
> javascript helpers.
>
> http://github.com/aaronchi/jrails
>
> In addition, any jQuery you want to run through the page object is as simple
> as:
>
> page << "$('#foo').bar();"
>
> --
> Greg Donald
> destiney.com | gregdonald.com
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.