Skip to content

Instantly share code, notes, and snippets.

View victor-github's full-sized avatar

Victor Olteanu victor-github

View GitHub Profile
@victor-github
victor-github / backbone.rails.js
Created May 7, 2011 21:26 — forked from trydionel/backbone.rails.js
Makes Backbone.js play nicely with default Rails setup
//
// Backbone.Rails.js
//
// Makes Backbone.js play nicely with the default Rails setup, i.e.,
// no need to set
// ActiveRecord::Base.include_root_in_json = false
// and build all of your models directly from `params` rather than
// `params[:model]`.
//
// Load this file after backbone.js and before your application JS.