Displaying 1 result from an estimated 1 matches for "page_active_3".
2006 May 11
1
RoR completely ignoring a column when saving changes
I have an action that needs to update two models/two tables in one shot,
and it works great, but ignores one column. Here is the action code:
(verify_id is irrelevant in this case)
[CODE]
def edit
@page_title = "Edit User"
@page_active_3 = "active"
if request.post?
@user = User.find(params[:id])
@profile = @user.profile
verify_id(@user.id, true)
begin
if @user.update_attributes(params[:user]) and
@profile.update_attributes(params[:profile])
flash[:notice] = ''User was...