I’ve got a model with an attribute that I’ve overridden – or at least
defined an implementation for. It seems that when I call
form.text_field :foo, it’s grabbing foo out of the attributes hash in
the object rather than calling the method. I can get around this by
using text_field_tag :foo, @object.foo.
Is that cool, or is there a better way? It seems interesting that
text_field would grab stuff directly out of the attributes hash,
thereby assuming my implementation. If they called the method ‘foo’ it
would preserve my implementation. Then, if there wasn’t an
implementation, ActiveRecord would step in and handle things.