Ruby Plus #91: Association Proxy Method in Rails

Posted in Development, Frameworks on July 07, 2008


Ruby Plus #91: Association Proxy Method in Rails

In this episode you will learn how to use the <association_name>_ids=([array of ids]) association proxy method in your controllers. When you have has_many or has_and_belongs_to_many models you can use the association proxy method and simplify code in your controllers.

 Based on the blog post params fu #4 by Stephen Chu.

Watch Video Watch Video on External Site

Tags: Ruby, Ruby On Rails, Frameworks, Ruby Plus, has many, form_for, params, hbtm