I just started delving into javascript to make project more responsive and I am working through a backbone.js example.
I\'ve replicated http://www.jamesyu.org/2011/01/27
Ran into the same problem, and then I figured out that I haven't included underscore.js anywhere. So I wrote a simple backbone.js file:
/*
*= require backbone/underscore-min.js
*= require backbone/backbone-min.js
*/
and stored it under vendor/assets/javascripts along with the Backbone and Underscore files:
vendor/assets/javascripts/
├── backbone
│ ├── backbone-min.js
│ └── underscore-min.js
└── backbone.js
My application.js.coffee looks something like this one now:
#= require backbone
#= require query