1

I am doing a small project with RhoMobile, I am using RhoStudio on Windows 7. My build.yml have:

extensions:
  - json
  - nokogiri

In my controller I have:

require 'nokogiri'

I get this error "Server Error, Error: no such file to load -- nokogiri" , any idea?


I am working in localhost. I have installed Nokogiri Gems, I can run this script for example:

require 'nokogiri'

html_doc = Nokogiri::HTML("<html><body><h1>HELLO WORLD!</h1></body></html>")

html_doc.css('h1')

Problem came when I want to use Rhomobile and Nokogiri, I need to parse HTML in Rhomobile but I cannot use Rhoconnect. I was trying some Gems: Hpricot, libxml-ruby, Scrapi, Nokogiri.

George Stocker
  • 57,289
  • 29
  • 176
  • 237
ie8888
  • 171
  • 1
  • 10

1 Answers1

0

Your server doesn't have the Nokogiri gem installed, or your path to your Ruby isn't what you think it is, and the script is executing under a different Ruby instance.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303