阅读背景:

Rails.root在Rails 3.0中的自定义Rake任务中为空

来源:互联网 

Maybe I missed this in the upgrade documentation, but if I output "Rails.root" in the rails console I see my app's root path. But if I reference "Rails.root" in a custom Rake task, it's empty. What am I missing? Thanks in advance.Maybe I missed this in the upgrade documentatio




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: