當我嘗試啓動這個錯誤不斷出現 C:\Arthur\Ruby\Aplicações em ruby\blog>rails server
=> Booting WEBrick
=> Rails 3.2.6 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C
我在ruby文檔中看到了module_function中的示例。我不理解Mod.one返回舊的「這是一個」的代碼的後半部分,並且c.one返回更新後的「這是新的」。這是如何發生 這是從文檔 module Mod
def one
"This is one"
end
module_function :one
end
class Cls
inclu
我已經安裝了幾個月的rvm,並且列出了系統(1.8.7)和已安裝(1.9.1)的紅寶石。並且兩個版本都正常工作。昨天我試圖更新1.9.1,但安裝後它不工作,系統紅寶石從rvm列表中刪除。我刪除了rvm,使rvm乾淨安裝。但是,當我通過RVM安裝1.9.1,它說: info: Installation of ruby-1.9.1-p378 is complete.
info: Updating
每當我需要紅寶石或IRB文件我得到這個錯誤: LoadError: no such file to load -- (insert any filename).rb
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29: