~/talk

Tricks That Rails Didn't Tell You About

Talkat RailsConf 2014 · 2014-04-22..04-25· [ruby-on-rails]
links:none on file
slides:none on file

Shows concrete Rails features and exact code outcomes: reversible migrations instead of verbose change_column, merging model scopes to avoid duplicated where clauses, where.not for clear negation, choosing includes vs preload vs joins to control queries, using pluck/distinct for lightweight selects, to_param slugging and its truncation, present vs exists to avoid extra queries, ActiveModel::Model for form objects, mailer i18n helpers for subjects, content_tag :for and partial locals hash, console helpers and sandbox, and rails:update to diff and install new config files.

AI-written summary · about

  1. 0:00Start
  2. 8:43migrations: change column null
  3. 9:54migrations: change column default
  4. 14:16eager load strategies
  5. 20:54benchmark
  6. 22:56ActiveModel:Model
  7. 26:47content_tag_for
  8. 27:44render empty collections
  9. 28:33partial locals
  10. 31:47exceptions handling
  11. 33:30application console helpers
  12. 34:05console sandbox
  13. 34:59custom annotations
  14. 35:35rails update
~/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.