u16suzuの blog

u16suzu のブログです。

read_attribute and write_attribute can use both symbol and string as arguments.

In ruby on rails read_attribute and write_attribute can use both symbol and string as arguments.

If you use attributes method you can use only string as argument.

via: http://blog.eiel.info/blog/2012/12/17/read-attribute-activerecord/