jquery-scrollto-rails

This gem provides the jquery scrollTo project found at http://archive.plugins.jquery.com/project/ScrollTo for the Rails asset pipeline (available since Rails 3.1).

To make use of this project add ONE of the following lines to 'app/assets/javascripts/application.js':

//= require jquery.scrollTo.min
//= require jquery.scrollTo

Installation

In your Gemfile, add this line:

gem "jquery-scrollto-rails"

Then, run bundle install.

That's it!