Completed 500 Internal Server Error in 4ms NameError (uninitialized constant Site::Whois) #208

Closed
EJIqpEP opened this Issue Feb 23, 2013 · 1 comment

Projects

None yet

2 participants

@EJIqpEP
EJIqpEP commented Feb 23, 2013

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

@weppos weppos was assigned Feb 23, 2013
Owner
weppos commented Feb 23, 2013

According to the error, it seems that the library is not correctly loaded in your Site class when you are trying to use it.

I encourage you to write a test for your app (either a unit and functional) to make sure all it's working as expected.

@weppos weppos closed this Feb 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment