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 ?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With