# Self-named - rb file required in Gem lib directory?

**URL:** <https://www.ruby-forum.com/t/self-named-rb-file-required-in-gem-lib-directory/116776>\
**Category:** Rails\
**Created:** [October 9, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/self-named-rb-file-required-in-gem-lib-directory/116776 "2007-10-09T18:23:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [October 9, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/self-named-rb-file-required-in-gem-lib-directory/116776/1 "2007-10-09T18:23:00Z")

</div>

Hi,

I just installed the rFacebook Gem. It turns out that when I start my  
app, I get the MissingSourceFile error - cannot require ‘rfacebook.’

The rFacebook gem does NOT have an rfacebook.rb file in the gem’s lib  
directory. After I added a blank file named rfacebook.rb, the problem  
was gone.

I noticed most Gems have a like named \*.rb file in the lib directory.  
For any given Gem called “foo”, is there supposed to be a “lib/foo.rb”  
file in the gem folder?
