阅读背景:

Ruby on Rails:错误。add_to_base与errors.add

来源:互联网 

I have read that errors.add_to_base should be used for errors associated with the object and not a specific attribute. I am having trouble conceptualizing what this means. Could someone provide an example of when I would want to use each?I have read that errors.add_to_base should be u




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: