Displaying 1 result from an estimated 1 matches for "user_primary_organization".
2006 Aug 12
0
issues with relationships and multiple objects on one form
...e
has_many :primary_users,
:class_name => ''User'',
:foreign_key => ''primary_organization_id''
A select displays all Organizations on the User form, allowing the
relationship to be defined using the code:
<p><label for="user_primary_organization">Primary Organization</label>
<%= collection_select(''user'', ''primary_organization_id'', @organizations,
''id'', ''name'') %>
</p>
When I create and save a new user everything works fine. When I open
the...