【发布时间】:2011-01-23 23:23:32
【问题描述】:
我在 vendor/gems 中有一个解压的 gem (youtube_g),它在 Rails 加载时可以正常工作。
当我通过调用来运行delayed_job 时,我需要使用这个gem
require 'youtube_g'
但我收到此错误::
MissingSourceFile: no such file to load -- youtube_g
from /Users/t/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require'
from /Users/t/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `block in require'
from /Users/t/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:547:in `new_constants_in'
from /Users/t/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require'
from (irb):2
from /Users/t/.rvm/rubies/ruby-1.9.1-p378/bin/irb:16:in `<main>'
有什么办法可以解决这个问题吗?
【问题讨论】:
标签: ruby-on-rails gem