Friday, 09 January 2009
Home jQuery Photos | Other plugins jRails - jQuery on Rails
jRails - jQuery on Rails PDF Print E-mail
(13 votes, average: 3.85 out of 5)
Written by LXR   
Friday, 30 November 2007 20:17

Image

jRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails.

By:http://ennerchi.com/projects/jrails
Download:Click here
DEMO

jRails 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 Effects

The 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 use

Just 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 />

<script type="text/javascript" src="/javascripts/jquery-ui.js"></script><br />

<script type="text/javascript" src="/javascripts/jquery-fx.js"></script><br />

<script type="text/javascript" src="/javascripts/jrails.js"></script>

You can also use the Rails javascript_include_tag helper with :default to load them automagically.

<%= javascript_include_tag :defaults %>

Install

To 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.

Comments (0)add comment

Write comment

busy

Newer news items:
Older news items: