0.1
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ships backbone and underscore to your Rails 3.1 application through the new asset pipeline. Rails 3.0 is supported via generators.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Runtime

>= 3.0.0
 Project Readme

backbone-rails

Developing javascript applications on top of rails just got faster thanks to the Rails 3.1 asset pipeline. Like jquery-rails, this gem bundles some javascript files to make them available to your application:

How to use it

Rails 3.1

Add it to your Gemfile:

gem 'backbone-rails'

Require backbone and its dependencies as a group in app/assets/javascripts/application.js.coffee:

#= require backbone-rails

With pure javascript, the lines would look like app/assets/javascripts/application.js:

//= require backbone-rails

Or if you need to, require what you need in app/assets/javascripts/application.js.coffee:

#= require json2
#= require underscore
#= require backbone

With pure javascript, the lines would look like app/assets/javascripts/application.js:

//= require json2
//= require underscore
//= require backbone

Rails 3.0

backbone-rails ships with a generator that copies all javascript files to public/javascripts. You can run it with rails g backbone:install.

Versioning

The gem will follow backbone versioning.

Contributors