MooTools! For Rails! So great.
Also provided is Sam Ruby's modified assert_select_jquery function for MooTools, which is automatically included for use in tests.
This gem vendors MooTools 1.4.1 and the latest MooTools UJS adapter for Rails 3.1 and greater. The files will be added to the asset pipeline and available for you to use. These two lines will be added to the file
//= require mootools //= require mootools_ujs
If you wish to use MooTools More as well, you can add this line to
//= require mootools-ui
When you generate a new Rails 3.1 app, pass the
-j mootools option, like this:
rails new myapp -j mootools
This gem adds a single generator to Rails 3, mootools:install. Running the generator will remove any Prototype JS files you may happen to have, fetch MooTools and the MooTools-ujs driver for Rails, and (optionally) fetch MooTools More.
In your Gemfile, add this line:
bundle install. To invoke the generator, run:
rails generate mootools:install #--more to enable MooTools More