0

I'm using whois gem and i work great in development. When i upload it in production i have such error:

Completed 500 Internal Server Error in 4ms
NameError (uninitialized constant Site::Whois):
app/models/site.rb:11:in `get_whois'
app/controllers/whois_controller.rb:11:in `show'

my get_whois method is

  def get_whois
    c = Whois::Client.new
    @array = c.query(@site_domain)
  end

and error is Whois::Client.new

Simone Carletti
  • 173,507
  • 49
  • 363
  • 364
user1625602
  • 63
  • 1
  • 6

1 Answers1

0

It looks like the Whois library is not correctly loaded in your production environment at the time you try to use it in the Site model.

Simone Carletti
  • 173,507
  • 49
  • 363
  • 364