Skip to content

Latest commit

 

History

History
executable file
·
30 lines (18 loc) · 962 Bytes

README.md

File metadata and controls

executable file
·
30 lines (18 loc) · 962 Bytes

Installation

Rails programmer will have jquery-smooth-scroll plugin in asset pipeline when using this little shiny thang. Bling you scrolling!

There is no gem of this version bumping fork yet.

Rails 4

Add this to your project's Gemfile:

group :assets do
  #gem 'jquery-smooth-scroll-rails'
  gem 'jquery-smooth-scroll-rails', :git => 'git@github.com:gretel/jquery-smooth-scroll-rails.git'
end

Add this to application.js, possibly at app/assets/javascripts/application.js:

//= require jquery-smooth-scroll

For production you might need to re-precompile assets:

RAILS_ENV=production bundle exec rake assets:precompile

The actual usage is explained here.

Rails 3

Dunno if it works, sorry. Please report any issues.