开发者

Rails 3: using non-Active Record objects with form_for

Is there any document开发者_开发技巧ation, or advice?


You can use Active Model

Take a look here.

Look at the source code at Github.


Using ActiveAttr is the more modern way of doing this.

Gem: https://github.com/cgriego/active_attr
Railscast: http://railscasts.com/episodes/326-activeattr

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜