2011-11-19 48 views

回答

22

试试这个:

Rails.root 

添加to_s如果你需要它作为一个字符串!

6

RAILS_ROOT已不存在。改为使用Rails.root

+0

这是应该在enviroment.rb或什么? – elkalto23

相关问题