Exploring the Magic
      Behind
 Dynamic Finders
             Diving into
  ActiveRecord::Base.method_missing
What are they?
    people    class Person  ActiveRecord::Base
id            end
first_name
last_name
address
What are they?
         people       class Person  ActiveRecord::Base
     id               end
     first_name
     last_n...
methods vs messages
              Customer            Person   Object


first_name()



  Message                Method
Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing
Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing
Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing
Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing
Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing
Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing
Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing
Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing
Upcoming SlideShare
Loading in …5
×

Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing

2,655 views
2,504 views

Published on

An exploration of how dynamic finders work in ActiveRecord.

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,655
On SlideShare
0
From Embeds
0
Number of Embeds
20
Actions
Shares
0
Downloads
30
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Exploring the magic behind dynamic finders: diving into ActiveRecord::Base.method_missing

  1. 1. Exploring the Magic Behind Dynamic Finders Diving into ActiveRecord::Base.method_missing
  2. 2. What are they? people class Person ActiveRecord::Base id end first_name last_name address
  3. 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
  4. 4. methods vs messages Customer Person Object first_name() Message Method

×