Nokogiri is the bane of my existence. It makes my rails new
command fail for a different reason every time I create a new Rails app.
There’s a ton of Nokogiri troubleshooting on StackOverflow, but, I can’t find, neither here nor elsewhere, the reason why Nokogiri is included with Rails. The Nokogiri documentation states that it’s used for parsing, searching, and modifying HTML/XML documents, but, what purpose, if any, does it serve if I’m not screen scraping?
Nokogiri is an XML/HTML/CSS parser. So if you want to programatically read or edit an XML document Nokogiri is the way to go.
Nokogiri is a dependency of rails-dom-testing which is required by Rails.
As far as I see it rails-dom-testing is used to verify certain parts of a rendered HTML/CSS page.
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