Skip to content
Ruby on Rails plugin for RightJS
JavaScript Ruby
Find file
Pull request Compare This branch is 3 commits ahead, 93 commits behind MadRabbit:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
images
javascripts
lib
spec
.gitignore
CHANGELOG
MIT-LICENSE
README.textile
Rakefile
init.rb
install.rb
right-rails.gemspec
uninstall.rb

README.textile

Welcome To RightRails

RightRails is a RubyOnRails plugin for RightJS javascript framework.

It works as a drop in replacement for all the Prototype/Scriptaculous
methods, plus it brings some more sweets and routine ajax operations
helpers.

Features

  • Lightning fast RightJS library
  • Transparent Prototype/Scriptaculous helpers replacement
  • More powerful and flexible new JavaScript generator for RJS
  • Conventional JavaScript interface for the most common AJAX operations
  • Better controller level access to the rjs generator
  • New ajax-friendly scaffold generator
  • Remote files uploading organization
  • Automatic RightJS modules inclusion handling (including i18n modules)
  • Additional FormBuilder methods for calendar and autocomplete fields
  • Underscored and ruby-like aliases for RightJS core methods

Documentation

See the wiki-pages for the documentation

http://wiki.github.com/MadRabbit/right-rails

See also the demo application for examples

http://github.com/MadRabbit/right-rails-demo

Usage

Install the plugin to your rails application

script/plugin install git://github.com/MadRabbit/right-rails.git

After that run the right_rails generator, which will put all the JavaScripts in place

script/generate right_rails

And add the following helper to your application layout, this will include all the necessary scripts on your page

<%= rightjs_scripts %>

You also will have an ajax-friendly scaffold generator

script/generate right_scaffold Zing

Ruby Gem

Ruby gem version is now also available.

gem install right-rails

Add the gem into your config/environment.rb file

Rails::Initializer.run do |config|
  config.gem 'right-rails'
end

Copyright © 2009-2010 Nikolay V. Nemshilov, released under the MIT license

Something went wrong with that request. Please try again.