为了解决我的问题,该问题在“生产中的 will_paginate 错误未定义方法“paginate” https://stackoverflow.com/questions/19577344/will-paginate-error-in-production-undefined-method-paginate”,我尝试运行:
script/rails runner -e production
and:
bundle exec script/rails runner -e production
在服务器上,就像这个 github 问题中建议的那样:https://github.com/mislav/will_paginate/issues/308#issuecomment-17167158 https://github.com/mislav/will_paginate/issues/308#issuecomment-17167158
但我收到以下错误:
bundler: command not found: script/rails
Install missing gem executables with `bundle install`
捆绑安装没有帮助。有什么建议么?
我正在使用:Ruby 2.0.0p247、Rails 4.0.0、Ubuntu 12.10 LTS、Unicorn、Capistrano
试试这个:
bundle exec rails runner -e production
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)