jrails or jq4r

jrails or jq4r(http://jq4r.blogspot.com/ ) are 2 options i found to
integrate jquery with rails.

which one do u prefer n y?

Neither. JQuery has always been about unobtrusive javascript and littering your views with inline javascript is basically going against everything the JQuery stands for.

That said, jrails is far better maintained and has a lot more features than jq4r. Do realize that jrails overwrites all the built-in Rails helpers, while jq4r uses custom methods (rails methods with jquery_ in front of it).

Best regards

Peter De Berdt