title: Gem not available in Rails app but works fine in Rails console (IMGKit)
body: <p>Trying to create an IMGKit instance in one of my Rails controllers:</p>
  
  <pre><code>def wkhtmltoimage
    ...
    kit = IMGKit.new("http://#{request.host_with_port}/?auth_token=" + token)
    img = kit.to_img(:jpg)
    file = kit.to_file(Rails.root + "public/uploads/testimage.jpg")
    ...
  end
  </code></pre>
  
  <p>When I load the page, I get this:</p>
  
  <pre><code>NameError in PagesController#wkhtmltoimage
  
  uninitialized constant PagesController::IMGKit
  </code></pre>
  
  <p>In my Gemfile I'm including the proper gem:</p>
  
  <pre><code>gem 'imgkit'
  </code></pre>
  
  <p>Bundler installs it fine. When I run the Rails console it is there and works:</p>
  
  <pre><code>1.9.3p194 :005 &gt; IMGKit.new("http://google.com")
   =&gt; #&lt;IMGKit:0x007fb08d16a658 @source=http://google.com, @stylesheets=[], @options={}&gt; 
  1.9.3p194 :006 &gt; 
  </code></pre>
  
  <p>Why would the class IMGKit work in the Rails console but not in the app? Any suggestions? Using RVM, Pow, Rails 3.2.6 (and all other gems work fine with that setup).</p>
  
  <h2>EDIT WITH ANSWER</h2>
  
  <p>Rebooting the pow server appears to have fixed the problem. Just put in terminal:</p>
  
  <pre><code>touch tmp/restart.txt
  </code></pre>
  
  <p>That should do it.</p>