Backaid - require depedencies and create a directory structure for your Backbone app

Installation

In your Gemfile, add this line:

gem "backaid"

Then run the following commands:

bundle install
rails g backaid

Layout and namespacing

Running rails g backaid will create the following directory structure under app/assets/javascripts/backbone:

routers/
models/
templates/
views/

It will also add your Underscore & jQuery dependencies to your vendor/assets & include application.js in application.html.erb.