什么是抽象控制器?
在我的 Rails 3 production.log 中,我看到一些错误,例如:
AbstractController::ActionNotFound (无法为 ClientsController 找到操作“图像”)
我没有发现任何问题。我在我的项目中搜索了对“images”和“AbstractController”的任何调用,但没有任何线索。
这个错误是什么意思以及 AbstractController 做了什么?
提前发送
In my Rails 3 production.log I see some errors like:
AbstractController::ActionNotFound (The action 'images' could not be found for ClientsController)
I don't notice anything going wrong. I searched for any call to 'images' and 'AbstractController' in my project but no clue.
What does this error mean and what does the AbstractController do?
Txs in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该错误意味着您在
ClientsController
中缺少方法images
?或者至少:尝试访问它。AbstractController
是 Rails 中的一个类,它充当每个控制器的基础。您的ApplicationController
派生自它。The error means you are missing a method
images
in yourClientsController
? Or at least: tried to access that.The
AbstractController
is a class inside Rails which serves as a base for every controller. YourApplicationController
derives from it.