Updates the attribute identified by attr_name with the specified value. (Alias for the protected write_attribute method).
# File active_record/base.rb, line 2100 def []=(attr_name, value) write_attribute(attr_name, value) end
<code/>
<pre/>
<code/>and<pre/>for code samples.