Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing
1. Exploring the Magic
Behind
Dynamic Finders
Diving into
ActiveRecord::Base.method_missing
2. What are they?
people class Person ActiveRecord::Base
id end
first_name
last_name
address
3. What are they?
people class Person ActiveRecord::Base
id end
first_name
last_name
address
Person.find_by_first_name 'mike'
Person.find_by_first_name_and_last_name 'mike', 'bowler'
Dynamic finder