Railbone

Easily integrate Backbone.js into rails for developing single page web apps.

Notes

Currently used with Mongoid, compatibility with ActiveRecord and other ORMs is unknown.

Installation

rails g railbone:install

  • includes javascript files in assets
  • creates router
  • creates app.js

Use

rails g model [name]

Generate models as you would usually which does the following:

  • creates a CRUD controller and routes
  • creates Backbone model and controller