search for: edit_access

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

2006 Jun 08
5
update only the join table in a HABTM - how?
I have a photographers app that requires giving access to galleries for users. in one part, I want to be able to define gallery access for a user seperate from updating any of the user info. I have this function: def edit_access @user = User.find(params[:id]) @user.galleries = Gallery.find(params[:gallery_ids]) if params[:gallery_ids] if @user.update_attributes(params[:user]) flash[:notice] = ''Account was successfully updated.'' redirect_to :action => ''list''...