# How to skip changed\_attributes in YAML

**URL:** <https://www.ruby-forum.com/t/how-to-skip-changed-attributes-in-yaml/177760>\
**Category:** Radiant CMS\
**Created:** [October 23, 2009, 7:49am UTC](https://www.ruby-forum.com/t/how-to-skip-changed-attributes-in-yaml/177760 "2009-10-23T07:49:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vamsi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b38774/32.png) [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Post date:** [October 23, 2009, 7:49am UTC](https://www.ruby-forum.com/t/how-to-skip-changed-attributes-in-yaml/177760/1 "2009-10-23T07:49:08Z")

</div>

Hi,

i’m getting the results like:

user=User.all  
and i want to convert the user records to yaml so i used user.to\_yaml,

i got the yml file thats nice, but before converting into yaml i need to  
change some values of user records

like  
puts user[0].password  
it shows “vamsi”  
but i want to change the password like(example) “%^@#A]//-0” some thing  
like encryption.  
for that i cahnged it as  
user[0].password="%^@#A]//-0"

and after that i put user.to\_yaml

and in the yml file i saw  
password: %^@#A]//-0

after that changed\_attributes:  
password: vamsi

how could i remove the changed\_attributes , as i don’t want to show the  
password like vamsi.

Thanks  
Vamsi.
