u16suzuの blog

日々学んだことのメモブログです。

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/