Rails 5 DEPRECATION WARNING: access to mime type through constants is deprecated

Installed rails 5. The idea that everything is in order, but can not create db or start the server. I get this error:

DEPRECATION WARNING: Access to the mimic type through constants is deprecated. Please change:

Mime :: HTML

in

Mime [: html]. (called from / usr / local / rvm / gems / ruby ​​-2.2.3 / gems / web-console-2.2.1 / lib / web_console / request.rb: 7) DEPARTMENT WARNING: Access to the mime type through constants is deprecated. Please change:

Mime :: TEXT

in

Mig [: text]. (called from / usr / local / rvm / gems / ruby ​​-2.2.3 / gems / web-console-2.2.1 / lib / web_console / request.rb: 7) DEPARTMENT WARNING: Access to the mime type through constants is deprecated. Please change:

Mime :: URL_ENCODED_FORM

in

Mime [: url_encoded_form]. (called from / usr / local / rvm / gems / ruby ​​-2.2.3 / gems / web-console-2.2.1 / lib / web_console / request.rb: 7)

Not quite sure what to do here. Not sure where to change Mime::HTML . Any ideas as to why I am getting this error? Or how to fix it?

+7
ruby-on-rails
source share
2 answers

edit gemfile: gem 'web-console', '~> 3.0' package update

+14
source share

Changing the gem web-console does not solve the problem.

Inside the gem, which opens within a few months, there is a pull request. Until it is resolved, you can take this plug, which has the change indicated by the warning.

0
source share

All Articles