search for: galleries_users

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

2006 Jun 08
5
update only the join table in a HABTM - how?
...otice] = ''Account was successfully updated.'' redirect_to :action => ''list'' else @galleries = Gallery.find(:all) render :action => ''manage_access'' end end The function works and updates the correct fields in the galleries_users table, but the page errors out on validation errors on @user. I''m hoping to make a function that only reaches to update @user.galleries and nothing in the user table. How do I do it? I''ve tried update_attributes(params[:user][:galleries]) and a few similar things, but reall...