SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Rails ORM De-mystifying Active Record has_many

by on Dec 09, 2011

  • 1,360 views

Rails' ORM layer, ActiveRecord, is an elegant solution for keeping model code simple and modular (aka DRY). Demystifying the way Ruby-on-Rails uses runtime method generation opens a doorway for ...

Rails' ORM layer, ActiveRecord, is an elegant solution for keeping model code simple and modular (aka DRY). Demystifying the way Ruby-on-Rails uses runtime method generation opens a doorway for understanding and provides a foundation for the other ways Rails uses simple conventions to allow sophisticated, concise functionality in a declarative style.





Here is big mystery that you'll be equipped to understand better after playing with the slides

-> If honeys is an array - and honeys has a method create! - then why does an array object [] not have create!



Hive.first.honeys.class
=> Array

[].create!
=> NoMethodError

Hive.first.honeys.create!

Statistics

Views

Total Views
1,360
Views on SlideShare
1,350
Embed Views
10

Actions

Likes
1
Downloads
8
Comments
0

1 Embed 10

http://paper.li 10

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
Post Comment
Edit your comment

Rails ORM De-mystifying Active Record has_many Rails ORM De-mystifying Active Record has_many Presentation Transcript