Rails 5 Features You Haven't Heard About
summary
Most of Rails 5’s value here is concrete: the type attributes API (implemented largely in 4.2) adds an attribute class macro that accepts type objects so coercion works with where and named scopes; ActiveRecord::Relation#or accepts another Relation to encourage composable scopes; a tiny metadata table blocks accidental destructive DB commands; migrations record a Rails-version bracket so old migrations keep old behavior; accessed_fields lets code select only the columns actually used; boolean parsing tightens several ambiguous truthy values; Ransack and PGcrypto illustrate real-world workarounds tried.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 1:26Type Attributes API
- 2:17Why this feature was added
- 5:10Typecasting
- 9:47Active Support LeftHat
- 12:08Name Scopes
- 14:08Database URL
- 17:36Migrations
- 17:59Weak migrations
- 19:28Changes to migrations API
- 20:30Generating migrations in Rails 5
- 21:09Why this feature isnt free
- 21:35How this affects older versions
- 22:46Accessed Fields
- 22:58Access Fields
- 23:10Why Access Fields
- 25:22Booleans
- 25:37regex
- 26:07Geoff Petrie
- 27:51True vs False
- 28:07True vs False II
- 28:30Deprecation
- 29:12Diesel
- 29:32Questions
related talks
24mRails 5 Features You Haven't Heard About
26mHidden Features of Rails 5
53mRuby 2 in Ruby on Rails
53mRuby 2 in Ruby on Rails
42mPowerful Rails Features You Might Not Know
40mRails 5.1: Awesome Features and Breaking Changes
38mDesigning a Great Ruby API - How We're Simplifying Rails 5
38mRails on Ruby: How Ruby Makes Rails Great
