This gem provides a version of the backbone-forms library designed to work with the Rails 3.1 asset pipeline. It is versioned to match the backbone-forms library and currently supports 0.10.1.
gem 'rails-backbone-forms'
In application.js, add the following:
//= require backbone-forms
If you're using bootstrap and want to use backbone-form's templates for it, you can instead use:
//= require backbone-forms-bootstrap
Same deal with application.css:
/*
*= require backbone-forms
*/
Or, for bootstrap:
/*
*= require backbone-forms-bootstrap
*/