Repository is archived
No commit activity in last 3 years
No release in over 3 years
Provides Crossroads.js for use with Rails 3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 2.0

Runtime

~> 3.0
 Project Readme

Crossroads.js for Rails Build StatusDependency Status

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