~/talk

ActiveSupport and ActiveModel

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

Walks through concrete utilities rather than theory: builds a rails 3.2 scaffold blog styled with rails_bootstrap, demos the console with pry + pry-rails edit in console (show_method, LS, live edit), shows ActiveSupport benchmarking with a sleep-2s example that logs duration, explains callbacks and concerns with a working WebShare after-save flow, and proves ActiveModel compliance by running ActiveModel lint tests: 8 failures → 1 while implementing a flat-file Post, then highlights validations, serialization, instrumentation and how Rails 4 eases inclusion.

AI-written summary · about

  1. 0:00ActiveSupport & ActiveModel intro
  2. 2:31Why Rails devs need these tools
  3. 3:55ActiveSupport hidden gems
  4. 6:24Rails console with Pry
  5. 9:36Benchmarking Rails perf
  6. 12:47ActiveSupport callbacks
  7. 17:16What is ActiveModel and why it matters
  8. 23:54ActiveModel & ActionPack
  9. 24:16ActiveSupport Concerns
  10. 25:39Instrumenting Rails
  11. 27:22ActiveSupport modular
  12. 28:07ActiveModel validations
  13. 29:09ActiveModel serializing
  14. 30:12Q&A
~/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.