~/talk

Ten Things You Didn't Know Rails Could Do

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

Shows how to run a complete single-file Rails app and how migrations like `references`/`belongs_to` create the foreign key column, an index and the model association automatically. Demonstrates Postgres full‑text search using a tsvector + GIN index and trigger, the lightweight `pluck` and `group.count` database tricks, streaming CSV downloads with an Enumerator + `find_each`, background work via a thread-safe queue for async jobs, per-user separate SQLite databases switched by subdomain, and turning Rails into a static site by precompiling assets and page‑caching while spidering the app.

AI-written summary · about

  1. 0:00Introduction
  2. 2:15Rails in a single file
  3. 3:41TODO comments & Rails console tricks
  4. 4:45Sandboxed console & helpers
  5. 5:27Switching web servers
  6. 6:07Plugins like Rails itself
  7. 7:10Shorthand migrations & indexes
  8. 7:51Automatic foreign keys
  9. 8:33Applied migrations check
  10. 8:53CSV data loading
  11. 9:38CSV serialization in DB
  12. 10:24Plucking & grouping fields
  13. 11:06Overriding associations
  14. 12:10ActiveRecord with IDs
  15. 12:52PostgreSQL string limits
  16. 13:56Full-text search
  17. 15:43Multi-db per user
  18. 18:15Why explore Rails
  19. 19:40Rails modifies Ruby
  20. 20:01Atomic file writing
  21. 21:05Deep merging hashes
  22. 21:47Reverse merging params
  23. 22:51String inquiry methods
  24. 23:54Rails on magazine covers
  25. 24:40ERB comments & tricks
  26. 25:46ERB percent syntax
  27. 26:52Clean view calculations
  28. 28:17Rendering arrays & partials
  29. 29:41Grouped select menus
  30. 30:22Custom form builders
  31. 32:47Routing exceptions
  32. 33:50Mounting Rack apps
  33. 34:55Sending CSV files
  34. 36:21Background threads
  35. 38:26Rails for static sites
  36. 40:34Closing remarks
~/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.