backbone-fails/README.md

36 lines
732 B
Markdown
Raw Permalink Normal View History

2011-05-18 13:32:31 +00: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
2011-05-18 13:54:19 +00:00
The version number of the gem is the same as the version number of Backbone, plus an extra version number to handle
minor Gem updates.
2011-05-17 23:43:02 +00:00
2011-05-18 13:56:18 +00:00
## Install
2011-05-18 13:56:32 +00:00
gem 'backbone-rails', :git => 'git://github.com/johnbintz/backbone-rails.git'