问题
Is there any documentation, or advice?
回答1:
You can use Active Model
Take a look here.
Look at the source code at Github.
回答2:
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