| jRails - jQuery on Rails |
|
|
|
| Written by LXR | |||
| Friday, 30 November 2007 20:17 | |||
|
jRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails. By:http://ennerchi.com/projects/jrailsDownload:Click hereDEMOjRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails. Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library. Visual EffectsThe visual effects in jRails are based on the new jquery-fx library. jRails currently uses a slightly modified version of jquery fx code to get some of the desired effects. This code is evolving and is subject to change. In the meatime, you can get a taste of the visual effects that are currently available. How to useJust install and go! Once installed, the previous Prototype/script.aculo.us helpers will be replaced by jQuery ones. In order for them to function correctly, just include the appropriate javascript files in the head of your page. <script type="text/javascript" src="/javascripts/jquery.js"></script><br /> You can also use the Rails javascript_include_tag helper with :default to load them automagically. <%= javascript_include_tag :defaults %> InstallTo install the jRails plugin: .script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails Then copy the javascript files in the plugin folder to your javascripts directory.
Set as favorite
Bookmark
Email This
Hits: 3498 Comments (0)
![]() Write comment
Newer news items:
Older news items:
|





