Earlier it was working fine. I have been playing little bit config. So may be i have changed some config unknowingly.
here is config of environment/development.rb
Are you reloading the object from the database?
For example:
>> a = User.last => # >> reload! Reloading... => true
'a' won't reflect any changes to your model until you reload it from the db.