随着ActiveModel在Rails 3中的推出,最新调用ActiveRecord :: RecordNotFound的方法是什么? ActiveModel :: RecordNotFound?Rails 3中ActiveRecord :: RecordNotFound的替代语法是什么
2
A
回答
0
0
ActiveModel是一组要实现的模块和约定,主要目标是为映射器提供一个通用接口,不多不少。所以不要,ActiveRecord::RecordNotFound
停留ActiveRecord::RecordNotFound
。 RecordNotFound
对每个映射器都没有意义:例如,对于Mongoid,您将有DocumentNotFound
(嗯,Mongoid::Errors::DocumentNotFound
)。
相关问题
- 1. 什么是Rails 3替代ActiveRecord :: Errors?
- 2. 的ActiveRecord :: RecordNotFound不是在Rails 3中
- 3. Rails发现获取ActiveRecord :: RecordNotFound
- 4. 无法与“ID”(的ActiveRecord :: RecordNotFound)
- 5. MemberController中的ActiveRecord :: RecordNotFound#show
- 6. Rails ActiveRecord替代ModelName.all
- 7. Safari中的Rails 3错误 - ActiveRecord :: RecordNotFound(无法找到auth_token =的用户):
- 8. ActiveRecord :: RecordNotFound UserController#show
- 9. 的ActiveRecord :: RecordNotFound:
- 10. Rails的路由的ActiveRecord :: RecordNotFound错误
- 11. 这个rails语法是什么意思?
- 12. 在Python 3中替代xreadlines()是什么?
- 13. 什么是ActiveRecord Rails关系?
- 14. Devise - ActiveRecord :: RecordNotFound
- 15. StoriesController中的ActiveRecord :: RecordNotFound#编辑
- 16. ActiveRecord :: RecordNotFound with ajax destroy
- 17. Python中的替代方法是什么?
- 18. 什么是替代str.translate在python 3?
- 19. Rails 3 - ActiveRecord :: StatementInvalid
- 20. 触发ActiveRecord :: RecordNotFound而不是返回零
- 21. Rails 4.2.5.1 ActiveRecord:何时/为什么使用self [:attr] =替代write_attribute()
- 22. ActiveRecord :: RecordNotFound in AlbumsController#show
- 23. ActiveRecord :: RecordNotFound at/questions/new无法找到没有ID的语言
- 24. 什么是替代snprintf(3)的C++习惯用法?
- 25. Rails 3 ActiveRecord查询
- 26. Response.Redirect()asp.net的替代方法是什么?
- 27. Rails 3 ActiveRecord链接
- 28. Rails 3中ActiveRecord的查询
- 29. 在Subsonic 3中急切加载ActiveRecord的计划是什么?
- 30. 在Rails 3中删除ActiveRecord 3