Automate bundling Backbone and its dependencies with Rails 3
Go to file
2011-05-18 09:32:31 -04:00
lib rails 3.1 asset support 2011-05-18 09:32:31 -04:00
vendor/assets/javascripts start this thing 2011-05-17 19:43:02 -04:00
.gitignore start this thing 2011-05-17 19:43:02 -04:00
backbone-rails.gemspec rails 3.1 asset support 2011-05-18 09:32:31 -04:00
Gemfile start this thing 2011-05-17 19:43:02 -04:00
Rakefile start this thing 2011-05-17 19:43:02 -04:00
README.md rails 3.1 asset support 2011-05-18 09:32:31 -04:00

Easily get Backbone.js and its dependencies into your app.

Rails 3.1

BAM!

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

Minified?

//= require underscore-min
//= require backbone-min

Rails 3.0

Slightly quieter BAM!

rails g backbone:install

You'll get these:

public/javascripts/json2.js
public/javascripts/underscore.js
public/javascripts/underscore-min.js
public/javascripts/backbone.js
public/javascripts/backbone-min.js

The version number of the gem is the same as the version number of Backbone.