# Missing source file (valid in console, errors when accessed online)

**URL:** <https://www.ruby-forum.com/t/missing-source-file-valid-in-console-errors-when-accessed-online/187843>\
**Category:** Rails\
**Created:** [April 30, 2010, 9:06am UTC](https://www.ruby-forum.com/t/missing-source-file-valid-in-console-errors-when-accessed-online/187843 "2010-04-30T09:06:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/90ced4/32.png) [@webo](https://www.ruby-forum.com/u/webo)\
**Post date:** [April 30, 2010, 9:06am UTC](https://www.ruby-forum.com/t/missing-source-file-valid-in-console-errors-when-accessed-online/187843/1 "2010-04-30T09:06:09Z")

</div>

Environment info:

Ruby 1.9.1-p376  
Rails 2.3.5  
Apache2 with Passenger mod

I installed the nokogiri gem like I would any other gem however when I  
require it at the top of my controller and access it through apache, I  
get an error saying “Missing source file” and it lists nokogiri. I  
have other gems required at the top and when I don’t have nokogiri  
required everything works fine.

Also when I try requiring nokogiri in the console I don’t get that  
error.

I was told that this is a Rails issue so any help would be appreciated.
