Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib oops forgot that vendor is bad news now
.gitignore
.ruby-gemset moving away from Rails 3.0
.ruby-version
Gemfile
README.md
Rakefile moving away from Rails 3.0
backbonejs-rails.gemspec update gemspec and bump to version 1.0.0

README.md

Backbone.js 1.0.0 Underscore.js 1.5.0

Installation

Add the following to your Gemfile:

gem "backbonejs-rails", "~> 1.0.1"

Then use Bundler to install:

$ bundle install

Usage

$ rails g backbonejs:install

Optionally you can add -ich to the end of that command to have icanhaz.js included.

What Does it do?

backbonejs-rails adds the necessary libraries to your Rails app for using Backbone.js.

  • backbone.js
  • underscore.js
  • json2.js

For templates you can optionally include ICanHaz.js

$ rails g backbonejs:install -ich 

Outdated Screencast? Yep I have one.

You can find my screencast on Backbone.js and Rails 3 here

Something went wrong with that request. Please try again.