title: Rails command not available after installing with gemfile
body: <p>I installed rails via a Gemfile and <code>bundle install</code>:</p>
  
  <p>Gemfile</p>
  
  <pre><code>source "https://rubygems.org"
  
  gem "rails",  "5.0.6"
  </code></pre>
  
  <p>the gem appears to have successfully installed according to success message. However it is still not available from the command line even after a restart.</p>
  
  <pre><code>$ rails
  The program 'rails' is currently not installed. You can install it by typing:
  sudo apt install ruby-railties
  You will have to enable the component called 'universe'
  </code></pre>
  
  <p>I am using rbenv (required) and have a number of utilities in <code>/.rbenv/shims/</code> (gem, rake, bundle, etc.) but not rails... so I don't know where it got installed.</p>
  
  <p><code>gem env</code> returns:</p>
  
  <pre><code>GEM PATHS:
   - /home/user/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0
   - /home/user/.gem/ruby/2.5.0
  </code></pre>
  
  <p>but I don't see those packages there. I'm guessing it needs to be on the path, but I don't know where it is. The solution needs to work while installing with a bash script.</p>