找不到HOME环境

时间:2012-03-23 22:04:56

标签: ruby-on-rails

我正在使用Railside创建一个新的Rails项目。我在Mac上。

当我这样做时,我收到了这个错误:

/Users/justindomingue/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.2/lib/rails/commands/application.rb:12:in `expand_path': couldn't find HOME environment -- expanding `~' (ArgumentError)

我试着这样做:

set HOME=%HOMEPATH%

更多信息:

    from /Users/justindomingue/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.2/lib/rails/commands/application.rb:12:in `<top (required)>'
from /Users/justindomingue/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/justindomingue/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/justindomingue/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.2/lib/rails/cli.rb:15:in `<top (required)>'
from /Users/justindomingue/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/justindomingue/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/justindomingue/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.2/bin/rails:7:in `<top (required)>'
from /Users/justindomingue/.rvm/gems/ruby-1.9.3-p125/bin/rails:19:in `load'
from /Users/justindomingue/.rvm/gems/ruby-1.9.3-p125/bin/rails:19:in `<main>'

1 个答案:

答案 0 :(得分:0)

我安装了Railside并且遇到了完全相同的问题。不确定您是否已经安装了RVM或是否已为您安装了Railside。在我的情况下,我已经有了RVM。也许Railside不知道怎么玩RVM。你可以联系他们。

然而,我的建议是尝试使用RubyMine或TextMate。这些我认为你会发现更有用。

BTW这些工具中的任何一个都会为您组织文件。这实际上是Rails本身的好处之一。这是一致的,因为这是在每个项目中设置文件夹的方式(约定优于配置)。