ActiveSupport and ActiveModel
summary
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
chapters (14)
- 0:00ActiveSupport & ActiveModel intro
- 2:31Why Rails devs need these tools
- 3:55ActiveSupport hidden gems
- 6:24Rails console with Pry
- 9:36Benchmarking Rails perf
- 12:47ActiveSupport callbacks
- 17:16What is ActiveModel and why it matters
- 23:54ActiveModel & ActionPack
- 24:16ActiveSupport Concerns
- 25:39Instrumenting Rails
- 27:22ActiveSupport modular
- 28:07ActiveModel validations
- 29:09ActiveModel serializing
- 30:12Q&A
related talks
42mPowerful Rails Features You Might Not Know
34mCode Spelunking: teach yourself how Rails works
26mDissecting Rails - a different approach to learning Rails
24mThe Rails Features we Loved, Lost, and Laughed at
40mTricks That Rails Didn't Tell You About
57mFuture of Developer Acceleration with Rails
22mBryan's ActieModel Extravaganza
37mDon't touch that!
