Displaying 1 result from an estimated 1 matches for "edit_io".
Did you mean:
edit_50
2006 Jun 12
0
struggling with relatively simple out of model updating
...ser = User.find_by_id(@in_out.user_id)
if @in_out.save
@user.update_attribute(:in_out, params[:user][:in_out])
flash[:notice] = ''In/Out was successfully updated.''
redirect_to :action => ''list''
else
render :action => ''edit_io''
end
end
The error I get is...
ActiveRecord::AssociationTypeMismatch
InOut expected, got String
Request
Parameters: {"user"=>{"will_return"=>"", "in_out"=>"In"}, "commit"=>"
Save ", "id"=&g...