# User information not getting if it is a same user

**URL:** <https://www.ruby-forum.com/t/user-information-not-getting-if-it-is-a-same-user/189973>\
**Category:** Rails\
**Created:** [June 10, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/user-information-not-getting-if-it-is-a-same-user/189973 "2010-06-10T18:03:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/4bbf92/32.png) [@vijay](https://www.ruby-forum.com/u/vijay)\
**Post date:** [June 10, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/user-information-not-getting-if-it-is-a-same-user/189973/1 "2010-06-10T18:03:54Z")

</div>

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…
