From: Ralph Shnelvar Date: 2010-01-09T14:43:47+09:00 Subject: Re: Something changed an instance variable ... and now I'm confused Brian, Friday, January 8, 2010, 1:45:34 PM, you wrote: BC> Rick Denatale wrote: >> Is activation_code an attribute of an ActiveRecord model? >> If so then the value isn't stored in an instance variable BC> I believe it's stored in @attributes (which is a Hash) >> You need something like: >> def activation_code=(arg) >> puts at_file_line_msg(__FILE__, __LINE__) >> puts "arg=" + arg >> self['activation_code'] =arg >> debugger >> arg # strictly speaking you don't really need this since ruby >> assignments via an x= method ignore the return value >> end BC> Should be cleaner to use: write_attribute('activation_code', arg) BC> If you have the Agile Web Development with Rails book, look up 'facade BC> columns' in the index. To both Brian and Rick, thank you. Is there another way to determine why a particular value changed and/or when it is assigned to?