New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast.

A book and screencast series showing you how to develop and deploy industrial-strength Rails apps in a direct, step by step way. The screencast series includes 12 lessons over more than 15 hours! Get the best "over the shoulder" experience of following what a top Rails 3 developer does when building an app today. Click here to learn more.

jRails: Drop-in jQuery Support for Rails

In Tools

jrails.png

Hampton Catlin's recent Ruby Survey (results here) showed that more Ruby and Rails developers prefer the jQuery Javascript framework to the Prototype framework that comes with Rails. jQuery has become popular across the board, but is unlikely to be included with Rails any time soon due to 37signals' support for the library.

jRails to the rescue! jRails is a drop-in jQuery replacement for Prototype and script.aculo.us on Ruby on Rails. It provides you will all the same default Rails helpers that use JavaScript functionality, but using jQuery instead!

Post supported by RichAppsConsulting: Are you looking for an Agile web 2.0 company to develop your company's website quickly and professionally? At RAC, we have a highly trained staff of developers who are experts in Rails, Flex and PHP development. We can develop solutions for your company with your budget and timeline in mind. We pride ourselves on having superior Rails programming skills the and striving for continuous improvement. For more information, call our office at 202.470.6683 or email us at contact@richappsconsulting.com. Please visit our website at http://www.richappsconsulting.com.

Post to Twitter Tweet This Post

Vaguely Related Posts (Usually)

8 Comment Responses to “jRails: Drop-in jQuery Support for Rails”

  1. #1
    AkitaOnRails Says:

    Awesome, I've been waiting for something like this. Kudos!

  2. #2
    Peter Cooper Says:

    Apologies for the coloring of the ad on the feed. That's a mistake. I'm turning down the obnoxious level about 90% in future ;-)

  3. #3
    David Reese Says:

    Come now Peter... the jQuery vs. Prototype was 41% to 38%, those 3% very likely falling into the margin of error. I'm not sure if that means the poll "showed that more Ruby and Rails developers" prefer jQuery. No use stirring up those waters unnecessarily.

  4. #4
    Jim Neath Says:

    I've been using jRails for close to a year now and I've gotta say I totally dig it.

  5. #5
    Peter Cooper Says:

    David: I had three options. Either "more" use jQuery, "less" use jQuery, or "the same" use jQuery as Prototype. "less" would be totally wrong as the results don't show that. "the same" would be very improbable. The results most support the "more" option although it is certainly not set in stone.

    In any case, I think stirring up the waters is an awesome thing. Let the framework wars begin! It's the foundation upon which Rails, Git, and even Ruby became popular.

  6. #6
    Rizwan Reza Says:

    Agreed. JQuery is a pretty good candidate considering its small footprint. I am still unsure, but my next project would likely be JQuery with the help of JRails, of course.

  7. #7
    Cory Says:

    jQuery rocks, and jRails makes it really easy to implement it into a rails app. You will see jQuery become the Rails standard soon, regardless of whether it makes the core or not.

  8. #8
    Markus Jais Says:

    This is great news. I just finished reading a JQuery book and I have to say that I really like JQuery. Javascript has been a pain for years but now it's easy.
    Great to see better integration with Ruby. This will definitely help make JQuery even more popular.

Leave a Reply