A checklist has many task_status, I have displayed the view in nested
model atttributes form,
checklist_instance attributes and its associated nested attributes are
getting updated correctly.
while i try to update user information to the checklist instance, the
following updates only if the updated_by_user is not same as
@authenticated_user.
def update
@checklist_instance.attributes = params[:checklist_instance]
@checklist_instance.updated_by_user = @authenticated_user
if @checklist_instance.save
flash[:notice] = ''Checklist was successfully updated.''
redirect_to_edit
end
end
Could anyone suggest me a solution for this..
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.