• Email
  • Favorite
  • Download
  • Embed
  • Private Content

Rails ORM De-mystifying Active Record has_many

by Blazing Cloud on Dec 08, 2011

  • 416 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 underst...

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!

Accessibility

Categories

Tags

ruby activerecord orm ruby on rails blazingcloud

More...

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

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

1 Embed 10

http://paper.li 10

Statistics

Favorites
0
Downloads
5
Comments
0
Embed Views
10
Views on SlideShare
406
Total Views
416
Post Comment
Edit your comment Cancel

Rails ORM De-mystifying Active Record has_many — Presentation Transcript