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

Installation

In your Gemfile, add this line:

gem 'backaid', '~> 0.1.9'

Then run the following commands:

bundle install
rails generate backaid

Layout and namespacing

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

routers/
models/
collections/
templates/
views/

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