jQuery with Rails?

0 views
Skip to first unread message

jfcouture

unread,
May 6, 2008, 10:08:13 PM5/6/08
to Montreal on Rails
I was wondering if anybody had used the jRails plugin on a project, to
use jQuery instead of protoype, and if there were any particular
issues to be aware of?

Thanks.

Jean-Francois Couture
http://jfcouture.com

James Golick

unread,
May 6, 2008, 10:12:24 PM5/6/08
to montreal...@googlegroups.com
I am.

Although, if you want to be idiomatic with JQ, most of the stuff in the plugin doesn't really make sense.

After playing with the helpers a little, I have just been writing unobtrusive JS, and using drnic's newjs gem to TDD it.

The nice thing about the plugin, though, is that you already have lots of code that depends on rails, you can make the transition to the JQ way of doing things slowly.

J.

jfcouture

unread,
May 7, 2008, 7:13:29 PM5/7/08
to Montreal on Rails
What are your reasons for using it? Personally, I quite like the way
it feels, and it seems to have built an impressive plugin community,
but I don't write javascript very often so it's mostly a feeling thing
instead of a rational decision.

JF

On May 6, 10:12 pm, "James Golick" <jamesgol...@gmail.com> wrote:
> I am.
>
> Although, if you want to be idiomatic with JQ, most of the stuff in the
> plugin doesn't really make sense.
>
> After playing with the helpers a little, I have just been writing
> unobtrusive JS, and using drnic's newjs gem to TDD it.
>
> The nice thing about the plugin, though, is that you already have lots of
> code that depends on rails, you can make the transition to the JQ way of
> doing things slowly.
>
> J.
>

James Golick

unread,
May 7, 2008, 8:27:17 PM5/7/08
to montreal...@googlegroups.com
The reason I'm using it on this particular project is speed. JQuery proved faster for the types of operations we are doing.

Since I started using it, though, I have really come to appreciate JQ's API, since it makes unobtrusive JS really easy.

The fact that it's a much smaller download is nice too.

J.
Reply all
Reply to author
Forward
0 new messages