1
我有Ramaze版本2012.04.14,Rubygems 1.3.6和Ruby 1.8.6所以我有最新版本。我的控制檯可以識別Ramaze和所有相關的命令。 (我可以運行ramaze --version
)找不到安裝了寶石的ramaze
我在公共文件所在的localhost環境中的我的www/
文件夾中創建了一個文件夾。
www/demo/hello_ramaze.rb
以code 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