2012-03-23 58 views
-1

我正在使用Railside創建一個新的Rails項目。我在Mac上。找不到HOME環境

當我這樣做,我得到這個錯誤:

/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>' 
+0

當你在終端中做「echo〜」(不帶引號)時會發生什麼? – 2012-03-23 22:22:26

+0

順便說一句,你可能想嘗試RubyMine或TextMate。很難相信他們正在將其作爲付費應用程序。它不僅僅是一個集成了文件瀏覽器的文本編輯器。 – 2012-03-23 22:24:09

+0

我得到這個:/用戶/ justindomingue。實際上,我仍在嘗試演示版本,我還沒有付款。我確實喜歡文件組織(通過控制器,配置文件等) – 2012-03-23 22:37:59

回答

0

我安裝Railside和有完全相同的問題。不知道您是否已經安裝了RVM,或者Railside是否爲您安裝了它。在我的情況下,我已經有了RVM。也許Railside不知道如何使用RVM。你可以聯繫他們。

不過我的建議是嘗試RubyMine或TextMate。這些我認爲你會發現更有用。

順便說一句,任何這些工具都會爲你組織文件。這實際上是Rails本身的好處之一。這是一致的,因爲這是如何在每個項目中設置文件夾(約定優於配置)。

+0

非常感謝,我會聯繫他們並嘗試Rubymine/Textmate! – 2012-03-24 22:08:51

相關問題