Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to bundle install 'open-uri' [closed]

I am very new to Rails. I am making a web application in which I am using nokogiri to search different websites to extract text from them. And so in the Gemfile, I have written require 'nokogiri' and 'open-uri', but when I bundle install I get this error :

Could not find gem 'open-uri (>= 0) ruby' in the gems available on this machine

But when I do require 'open-uri' in my console, it displays yes. So why can't I bundle install, or is there any alternative to it ?

like image 536
user2709885 Avatar asked Dec 12 '13 13:12

user2709885


1 Answers

OpenUri is part of the Ruby standard library, you only need to require it if you want to use it in your code. No gem is required.

like image 93
hwatkins Avatar answered Nov 03 '22 06:11

hwatkins