2012-06-23 65 views
1

我有Ramaze版本2012.04.14,Rubygems 1.3.6和Ruby 1.8.6所以我有最新版本。我的控制檯可以識別Ramaze和所有相關的命令。 (我可以運行ramaze --version找不到安裝了寶石的ramaze

我在公共文件所在的localhost環境中的我的www/文件夾中創建了一個文件夾。

www/demo/hello_ramaze.rbcode as explained in the tutorial作爲文件。

require 'ramaze' 

class MyController < Ramaze::Controller 
    map '/' 

    def index 
    return "Hello, Ramaze!" 
    end 
end 

Ramaze.start 

我試圖執行ruby hello_ramaze.rb,我得到這個錯誤。

hello_ramaze.rb:1:在`需要':沒有這樣的文件來加載 - 從hello_ramaze.rb ramaze (LoadError) :1

回答

1

我升級到紅寶石1.9.3和問題已經解決了。

如果使用Windows,請使用Rubyinstaller