Question

To solve my problem, which is discussed in "will_paginate error in production undefined method 'paginate'", I tried running:

script/rails runner -e production

and:

bundle exec script/rails runner -e production

on the server like suggested in this github issue: https://github.com/mislav/will_paginate/issues/308#issuecomment-17167158

But I get the following error:

bundler: command not found: script/rails
Install missing gem executables with `bundle install`

Bundle install doesn't help. Any suggestions?

I'm using: Ruby 2.0.0p247, Rails 4.0.0, Ubuntu 12.10 LTS, Unicorn, Capistrano

Was it helpful?

Solution

Try this instead:

bundle exec rails runner -e production.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top