search for: user_groups_us

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

2010 Jun 11
0
nested form & habtm
...p < ActiveRecord::Base has_and_belongs_to_many :users end users_controller.rb def new @user = User.new(:user_group_ids => params[:group]) end in the new user view, i have access to the User.user_groups object, however when i submit the form, not only does it not save into my join table (user_groups_users), but the object is no longer there. all the other objects & attributes of my User object are persistent except for the user group. i just started learning rails, so maybe i am missing something conceptually here, but i have been really struggling with this. -- Posted via http://www.ruby-...