jRails: Drop-in jQuery Support for Rails
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.
October 9th, 2008 at 3:04 am
Awesome, I've been waiting for something like this. Kudos!
October 9th, 2008 at 3:49 am
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 ;-)
October 9th, 2008 at 5:55 am
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.
October 9th, 2008 at 8:27 am
I've been using jRails for close to a year now and I've gotta say I totally dig it.
October 9th, 2008 at 2:35 pm
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.
October 9th, 2008 at 5:17 pm
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.
October 10th, 2008 at 12:38 am
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.
October 10th, 2008 at 6:47 am
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.