4

I have followed this instructions (for Macosx): http://nokogiri.org/tutorials/installing_nokogiri.html

GemFile

gem 'nokogiri'

Controller's code:

require 'rubygems'
require 'nokogiri'
require 'open-uri'

I use Rails 3.1.3

LoadError in ScriptsController#tv2db

no such file to load -- nokogiri

If i use "irb", it's ok

>> require 'nokogiri'
=> true
3
  • do you have gem 'nokogiri' in your Gemfile ?
    – house9
    Dec 11, 2011 at 19:45
  • yes, and i've alredy run "bundle install"
    – sparkle
    Dec 11, 2011 at 20:01
  • RESOLVED deleting Gemfile.lock and re-run "Bundle install"
    – sparkle
    Dec 11, 2011 at 20:14

1 Answer 1

7

Don't forget to restart server.

1
  • i've deteled Gemfile.lock and re-run "Bundle install". It works!
    – sparkle
    Dec 11, 2011 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.