~/talk

Using Backbone.js with Rails: Patterns from the Wild

Talkat RailsConf 2012 · 2012-04-23..04-25· [javascript, ruby-on-rails]
slides:none on file

Backbone.js pairs with Rails by providing model mirroring (models/collections that sync via REST), DOM-owning views that render templates, and optional routers; two concrete patterns emerge: a full client-side Greenfield full-Monty where Rails becomes a JSON API and Backbone renders everything (works but requires a lot of boilerplate and testing), and an incremental backbone as frosting approach that overlays views onto server-rendered pages using publish/subscribe or routers to swap content — effective for incremental migration. Consider Ember or Meteor if boilerplate is a blocker.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:46Understanding Backbone
  3. 4:20Evolution of JS in Rails
  4. 7:28The page object pattern
  5. 11:03When to use a framework
  6. 14:55Backbone core concepts
  7. 18:59Full-stack Backbone pattern
  8. 33:28Evaluating Backbone
  9. 35:17Incremental adoption
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.