已安裝的Rails 5.認爲事情沒有問題,但無法創建數據庫或啓動服務器。我得到這個錯誤:Rails 5 DEPRECATION警告:通過常量訪問MIME類型已被棄用
DEPRECATION WARNING: Accessing mime types via constants is deprecated. Please change:
Mime::HTML
to:
Mime[:html] . (called from at /usr/local/rvm/gems/ruby-2.2.3/gems/web-console-2.2.1/lib/web_console/request.rb:7) DEPRECATION WARNING: Accessing mime types via constants is deprecated. Please change:
Mime::TEXT
to:
Mime[:text] . (called from at /usr/local/rvm/gems/ruby-2.2.3/gems/web-console-2.2.1/lib/web_console/request.rb:7) DEPRECATION WARNING: Accessing mime types via constants is deprecated. Please change:
Mime::URL_ENCODED_FORM
to:
Mime[:url_encoded_form] . (called from at /usr/local/rvm/gems/ruby-2.2.3/gems/web-console-2.2.1/lib/web_console/request.rb:7)
不太確定在這裏做什麼。不知道在哪裏改變Mime::HTML
。任何想法,爲什麼我得到這個錯誤?或者如何解決它?
與5.0.0.beta4相同的問題,升級到web-console 3.0解決了它。謝謝! –
這解決了這3個警告,但我有另一個像「請更改'Mime :: JSON'到'Mime [:json]'」你能指出哪個寶石可能導致這個,我不想更新我所有的包。並感謝您的幫助 –