Ruby Plus #85: Select Dropdown using Has One Relationship in Rails
  • Video is free for view
  • Video is available for download
View_video

In this episode you will learn how to use options_from_collection_for_select when you have a has_one relationship between ActiveRecord objects.

Note: For create, I was looking at the wrong book because the id was higher than the one we were looking at. (I had created some books before the screencast)



Tags: Ruby Plus, ActiveRecord, has_one, Ruby, Frameworks, Ruby On Rails

Level: any Date: July 04, 2008 Votes: 0 User: Dmytro Shteflyuk  Comments:
 
 

No Response(s) to this entry

Subscribe to comments with RSS.