Displaying 1 result from an estimated 1 matches for "save_account".
Did you mean:
sam_account
2006 Jan 03
5
update command not updating DB
...in this one for some reason.
Here is my controller code for the list view, and then the update
command:
======
def edit
@user = User.find(params[:id])
end
def update
@user = User.find(params[:id])
if @user.update_attributes(@params[:users])
redirect_to(:action => "save_account")
else
flash[:notice] = "Couldn''t save account information, please try
again."
redirect_to(:action => ''edit'', :id => @user.id)
end
end
======
if I set up a template for update and inspect both @user and
params[:user] this is w...