title: Cannot use Mechanize in Rails app: NameError: uninitialized constant Mechanize
body: <p>I have added a gem:</p>
  
  <pre><code>gem 'mechanize'
  </code></pre>
  
  <p>And bundled them:</p>
  
  <pre><code>bundle
  </code></pre>
  
  <p>I see in gemfile.lock:</p>
  
  <pre><code>mechanize (2.7.5)
    domain_name (~&gt; 0.5, &gt;= 0.5.1)
    http-cookie (~&gt; 1.0)
    mime-types (&gt;= 1.17.2)
    net-http-digest_auth (~&gt; 1.1, &gt;= 1.1.1)
    net-http-persistent (~&gt; 2.5, &gt;= 2.5.2)
    nokogiri (~&gt; 1.6)
    ntlm-http (~&gt; 0.1, &gt;= 0.1.1)
    webrobots (&gt;= 0.0.9, &lt; 0.2)
  </code></pre>
  
  <p>So I open <code>rails console</code></p>
  
  <pre><code>irb(main):001:0&gt; Nokogiri
  =&gt; Nokogiri
  irb(main):002:0&gt; Mechanize
  NameError: uninitialized constant Mechanize
          from (irb):2
          from /home/viters/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.3/lib/rails/commands/console.rb:65:in `start'
          from /home/viters/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.3/lib/rails/commands/console_helper.rb:9:in `start'
          from /home/viters/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.3/lib/rails/commands/commands_tasks.rb:78:in `console'
          from /home/viters/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.3/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
          from /home/viters/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.3/lib/rails/commands.rb:18:in `&lt;top (required)&gt;'
          from /mnt/f/Nauka/crawler/bin/rails:9:in `&lt;top (required)&gt;'
          from /home/viters/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
          from /home/viters/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
          from -e:1:in `&lt;main&gt;'
  irb(main):003:0&gt;
  </code></pre>
  
  <p>What am I supposed to do? Everything is set and rails app doesn't see Mechanize. I'm working on win10 bash, ruby 2.4.0, rails 5.0.3</p>