Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Rails & Backbone in perfect harmony
Ruby CoffeeScript JavaScript
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app make work heroku
config untrack compiled assets
db add order to schema
public untrack compiled assets
script init
.gitignore cleanup leftover views
Gemfile assets again
Gemfile.lock make work heroku markdown why you no
Rakefile init init

This is the classic Backbone Todos app, refactored to leverage CoffeeScript and Rails' Asset Pipeline, and backended by a Rails JSON API.


If you don't already know this dance:

git clone git://

cd rails-backbone-todos/

bundle install

rake db:schema:load

rails server

open http://localhost:3000

For a really fun time

Check http://localhost:3000/todos.json while you use the Backbone app to see the data updating. All communication between Backbone and Rails is over the API; front and back ends are completely decoupled.

Something went wrong with that request. Please try again.