Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 5 DEPRECATION WARNING: Accessing mime types via constants is deprecated

Installed Rails 5. Thought things were fine, but can't create a db or start server. I get this error:

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)

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

like image 257
Violet Avatar asked Nov 07 '15 18:11

Violet


1 Answers

change Gemfile: gem 'web-console', '~> 3.0' bundle update

like image 189
joseen Avatar answered Oct 05 '22 12:10

joseen