search for: manage_access

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

2006 Jun 08
5
update only the join table in a HABTM - how?
...lery_ids]) if params[:gallery_ids] if @user.update_attributes(params[:user]) flash[:notice] = ''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...