1
我知道before_filter已經被rails棄用了。我沒有打電話給它,但由於某種原因,我收到了一條說我是的消息。 before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from <top (required)> at /Users/intern/Desktop/Work/deadmanssnitch/config/environment.rb:5)
升級到Rails 5的問題 - 在過濾器之前
在該文件中environment.rb
第5行,我沒有過濾器之前調用,但此行Rails.application.initialize!
爲什麼會被說,一個過濾器之前,當它沒有被稱爲有正在使用?任何幫助將是偉大的!謝謝。
那麼,當'Rails'被調用,這是調用我所有的寶石和代碼? – Bitwise
因爲我沒有在我的項目中使用它,沒有任何寶石使用我的知識。 – Bitwise
初始化應用程序確實意味着加載你的寶石,是的。 –