PagejsRails
A Rails library implementation for the visionmedia/page.js -- The Micro client-side router inspired by the Express router. Rails Demo of page.js
Installation
Add this line to your application's Gemfile:
gem 'pagejs_rails'
config/ini Rails.application.config.assets.precompile += %w( page.js )
And then execute:
$ bundle
Usage
app/assets/javascript/application.js
//= require page
Contributing
- Fork it ( https://github.com/[my-github-username]/pagejs_rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request