This gem vendors MooTools 1.3.2 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-more
When you generate a new Rails 3.1 app, pass the
-j mootools option, like this:
rails new myapp -j mootools
bundle install. You're done!
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