On Sep 3, 8:05 pm, Grary Stimon <[email protected]> wrote:
> Hi,
>
> I'm new to gem development. I just completed a gem for use with a Rails
> 3.0.7 project. The gem itself passes its tests. I've listed the gem in
> the Rails project's Gemfile...
>
> Unfortunately, Rails is choking on some requires in my gem. Here is what
> I get in Rails:
>
> activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require':
> no such file to load -- zip_code/config.rb (LoadError)
>

Do you have a valid gemspec in the root of your project?

>
> $LOAD_PATH.unshift(File.dirname(__FILE__))
>

Don't play with your $LOAD_PATH.

>
> Any tips on how to properly require files in a gem so that Rails will
> see them?
>

Take a look to RubyGems guides:

http://guides.rubygems.org/

--
Luis Lavena

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to