title: Why is "rails runner -e production" not working?
body: <p>To solve my problem, which is discussed in "<a href="https://stackoverflow.com/questions/19577344/will-paginate-error-in-production-undefined-method-paginate">will_paginate error in production undefined method 'paginate'</a>", I tried running:</p>
  
  <pre><code>script/rails runner -e production
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>bundle exec script/rails runner -e production
  </code></pre>
  
  <p>on the server like suggested in this github issue: <a href="https://github.com/mislav/will_paginate/issues/308#issuecomment-17167158" rel="nofollow noreferrer">https://github.com/mislav/will_paginate/issues/308#issuecomment-17167158</a></p>
  
  <p>But I get the following error:</p>
  
  <pre><code>bundler: command not found: script/rails
  Install missing gem executables with `bundle install`
  </code></pre>
  
  <p>Bundle install doesn't help. Any suggestions?</p>
  
  <p>I'm using: Ruby 2.0.0p247, Rails 4.0.0, Ubuntu 12.10 LTS, Unicorn, Capistrano</p>