Ruby Plus #85: Select Dropdown using Has One Relationship in Rails

Posted in Development, Frameworks, Databases on July 06, 2008


Ruby Plus #85: Select Dropdown using Has One Relationship in Rails

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)

Watch Video Watch Video on External Site

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