Provides Crossroads.js (0.12.0) for use with Rails 3
RubyGems | Ruby Toolbox | GitHub | Travis CI | Gemnasium | RubyDoc
Installation
JavaScript Dependencies
Crossroads.js depends upon js-signals which must also be added to your application. Either...
- Use jssignals-rails gem to add js-signals to the asset pipeline
- Place a copy of signals.js (or signals.min.js) in one of the asset pipeline or public directories
Rails 3.1+
To use Crossroads.js with your Rails 3.1+ application, add the following to your Gemfile
gem "crossroadsjs-rails"
Run bundle install
and Crossroads.js will be available for you to use via the asset pipeline. Add the following line into your app/assets/javascripts/application.js
file...
//= require crossroads
...or for the minified version in development
//= require crossroads.min
Crossroads.js is now installed. Woop!
Rails 3.0
To use Crossroads.js with your Rails 3.0 application, add the following to your Gemfile
gem "crossroadsjs-rails"
Run bundle install
followed by the install generator
rails generate crossroadsjs:install
Crossroads.js is now installed. Woop!
##Crossroads.js Resources Project Page | GitHub