search for: disc_jockey_id

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

2006 Jan 29
9
Specify options with habtm
Hi all I have the following models: class member has_and_belongs_to_many :disc_jockeys end class disc_jockey has_and_belongs_to_many :members end The relation table is called disc_jockeys_members and has the following fields: disc_jockeys_members(disc_jockey_id, member_id, status) So far, the field status can have values like valid, invalid, locked etc., but it is not regarded yet by Rails. So I would like to integrate it with the standard methods. josh $ script/console >> m = Member.find(:first) >> m.disc_jockeys # Returns all associated...