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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.