【发布时间】:2016-07-25 21:03:02
【问题描述】:
我使用this method 来表示rails 中的模态。它工作得非常好,但我刚刚升级到 Rails 5 beta3,现在它不能在生产环境中工作。
我收到此错误:
Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.9ms)
NameError (uninitialized constant ApplicationController::ModalResponder):
app/controllers/application_controller.rb:26:in `respond_modal_with'
app/controllers/tools_controller.rb:28:in `new'
Rails 5 是否抛弃了我的继承?
我的class ModalResponder < ActionController::Responder 在/lib 中,正在开发中...
寻找有关 rails 5 更改的信息,但来源仅限于我的知识。
【问题讨论】:
-
这似乎是 Rails 5.0.0 中的一个错误。它在退出测试版后也存在。对我来说,它只发生在生产中,而不是在开发中。
标签: ruby-on-rails ruby-on-rails-5