LoginSignup
1

More than 5 years have passed since last update.

Production環境でNet::HTTPが使えない?

Last updated at Posted at 2018-05-09

起きたエラー

Production(本番)環境


NameError (uninitialized constant Net::HTTP):

原因と解決


# ↓の行を追記
require 'net/http'

http = Net::HTTP.new(uri.host, uri.port)

Development(開発)環境だと必要ないみたい

参考

https://github.com/AzureAD/omniauth-azure-activedirectory/issues/33
https://teratail.com/questions/112198

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1