现在是在 windows 机器上开发,马上要发布到 heroku 上,现在需要在后台添加一个每天执行的任务,可是我在装了 rufus-scheduler 之后,把 task.rb 也加上了,后面就启动不起来出错了,求助啊?
rails s
=> Booting WEBrick
=> Rails 3.2.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in require':
cannot load such file -- rufus/scheduler (LoadError)
from d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:i
n
block in require'
from d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:i
n load_dependency'
from d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:i
n
require'
from d:/work/ruby/ruby_work/nwmi1/config/initializers/task.rb:2:in `'