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):
my get_whois method is
c = Whois::Client.new
@array = c.query(@site_domain)
and error is Whois::Client.new
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.