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

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    3 Favorites

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

    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
    4. methods vs messages Customer Person Object first_name() Message Method

    + Mike BowlerMike Bowler, 2 years ago

    custom

    872 views, 3 favs, 0 embeds more stats

    An exploration of how dynamic finders work in Activ more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 872
      • 872 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 3
    • Downloads 17
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories