Is there any documentation, or advice?
Using ActiveAttr is the more modern way of doing this.
Gem: https://github.com/cgriego/active_attr
Railscast: http://railscasts.com/episodes/326-activeattr
来源:https://stackoverflow.com/questions/4241779/rails-3-using-non-active-record-objects-with-form-for