我在rails中使用了this method模態。它工作得很好,但我已經升級到了Rails 5 beta3,現在它不適用於生產。Rails 5忽略/ lib類?
我得到這個錯誤:
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
和發展工作...
尋找與軌道5的變化信息,而且來源有限,據我所知。
這看起來像是Rails 5.0.0中的一個bug。它在Beta版之後也是存在的。對我而言,它只發生在生產中,而不是發展中。 –