Helpful Backbone Explanation
Model is part of your code that retrieves and populates the data,
View is the HTML representation of this model(views change as models change, etc)
Some pros that I discovered with Backbone:
- No more jQuery.data(bla, bla): no need to store data in DOM, store data in models instead
- event binding just works
- extremely useful underscore utility library
- backbone.js code is well documented and a great read. opened my eyes to a number of JS code techniques.
Here is a set of great tutorials on using Backbone with Rails as the back-end:
CloudEdit: A Backbone.js Tutorial with Rails:
p.s. There is also this wonderfull Collection class that lets you deal with collections of models and mimic nested models, but i dont want to confuse you from the start.