的Gemfile軌引入nokogiri沒有這樣的文件或目錄
...
gem 'nokogiri'
...
在控制器
doc = Nokogiri::HTML(open('http://google.com'))
而且我得到了一個錯誤
Errno::ENOENT in SiteController#scrap
No such file or directory - http://google.com
app/controllers/site_controller.rb:6:in `initialize'
app/controllers/site_controller.rb:6:in `open'
app/controllers/site_controller.rb:6:in `scrap'
我試圖刪除Gemfile.lock的和做「捆綁安裝「再次,但它沒有解決我的問題。
軌2.3.8
紅寶石1.9.3p194
我在做什麼錯?在此先感謝您的幫助
非常感謝! – Tom
我不認爲你需要閱讀該文件,但它沒有它的作品。 – Robin