Uncaught TypeError: Cannot call method 'extend' of undefined
问题 I am trying to get a CoffeeScript class to extend a Backbone.Model. I built a brand new rails 3.1 app, created a scaffold of 'Stone', with 3 attributes, and patched a snippet of the Todos.coffee example into stones.js.coffee. I have both backbone.js and underscore.js in the app/assets/javascripts folder. When I run this under the Chrome Java console, I get the message above in the console log. Any ideas? Actual code follows: $ -> class Todo extends Backbone.Model # Default attributes for the