Backbone.js, Jasmine and Rails: The Lust Story
summary
A Rails app called Blog Mate uses Rails + Backbone models + CoffeeScript and Smarty templates; implementing Backbone cuts custom save/update/destroy code, moves JSON REST behavior into models and collections, and adds comparator sorting and event-driven updates so multiple views stay consistent. Jasmine gets introduced as the JS test runner with Jasmine fixtures and stubbed server calls to avoid flaky specs. The claim: far less duplicate JavaScript, clearer organization, and a better-tested front end that actually works.
AI-written summary · about
chapters (27)
- 0:00Introduction
- 1:16Personal Story
- 4:13About me
- 4:36Preface
- 5:17Rails and Jasmine
- 8:59Modular JavaScript
- 9:30View Handling
- 10:22Saving the Model
- 11:01Rendering a Template
- 11:26Multiple Views
- 12:07Sample View
- 13:03Update View
- 14:09Backbone View
- 15:42List View
- 16:24Base View
- 17:07Views
- 17:45Models
- 18:24Backbone Models
- 21:02Backbone Events
- 22:04Backbone Collections
- 22:35Pluck
- 23:34Comparator
- 24:22Jasmine
- 24:50fixtures
- 25:35Routes
- 26:22Conclusion
- 27:05Backbone Views
related talks
40mUsing Backbone.js with Rails: Patterns from the Wild
18mStart using Jasmine. Write better JavaScript. Profit.
28mBuilding in Rails, Backbone, and CoffeeScript
34mYour Front End Framework is Overkill - Server Side Javascript w/ Rails
54mTaking JavaScript Seriously with Backbone.js
33mOld-school Javascript in Rails
35mFrom RSpec to Jest: JavaScript testing for Rails devs
40mFRONTEND CHOICES
