~/talk

View Components in Rails

Talkat RubyConf India 2012 · 2012-05-14..05-20· [ruby, component-design]
links:none on file
slides:none on file

Argues that object-like view components replace sprawling partials and before_filters, using Merb Parts, Rails Parts, cells (app/cells generators) and Apotomo for interactive widgets; shows a speaking_events cell with show/head states, per-item and per-state fragment caching and explicit cache keys, generators creating app/cells and test helpers, and widget trees for notes with AJAX-driven create/update events. Demonstrates production use on democracynow.org and a Rails 3.1 app where components render, cache and nest successfully, reducing controller bloat while keeping CSS/JS placement as a noted caveat.

AI-written summary · about

  1. 0:00Start
  2. 1:34render_component
  3. 3:24View Directory Structure
  4. 11:43How do we handle this?
  5. 22:35Caching
  6. 30:55Apotomo - Events
~/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.