search for: association_singular_name

Displaying 1 result from an estimated 1 matches for "association_singular_name".

2006 Jul 27
0
CRUD, REST and associations
...end end def subscribed_to?(magazine) subscriptions.any? { |s| s.magazine_id == magazine.id } end end Okay, this way it works. Still, surprisingly, it is more effort than could be expected as Rails doesn''t support this behavior out of the box with a suitable helper and <association_singular_name>_ids= methods. This *may* be an indication that something is wrong. Is it? Is there a better way, more in keeping with CRUD and REST to achieve the same ends? Michael -- Michael Schuerig mailto:michael@schuerig.de http://www.schuerig.de/michael/