根据Rails 3 release notes, validate_presence_of
is deprecated .
但是,我在 the documentation (for v4.0.2) 中看不到这一点的提及.
这是发行说明中的错误/它是否被重新推荐/文档是否有误?
最佳答案
关于ruby-on-rails - `validates_presence_of` 是否已弃用(从 Rails 3 开始)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33348535/