ok, so I tried this.... and the redirect in the controller is now
working, but the database is not updated... which leads me to the
controller code, which must be wrong... here it is:
def update
@user = User.find(params[:id])
respond_to do |format|
if @user.update_attributes(params[:user])
flash[:notice] = 'User was successfully updated.'
format.html { redirect_to(:controller => "videos") }
format.xml { head :ok }
else
flash[:notice] = 'unable to update'
format.html { redirect_to(:controller => "videos") }
format.xml { render :xml => @user.errors,
:status => :unprocessable_entity }
end
end
end