From: Jf Rejza Date: 2008-11-10T05:20:06+09:00 Subject: changing the value of a hash Hi I have an active record object collection. I want to change the value of the key called "mail". @users.collect {|s|s.attributes.x_method { if key == mail then replace @ something else (ex: value.gsub(/@/," (at) ") }}.to_json How can I achieve my gold? thanks jf -- Posted via http://www.ruby-forum.com/.