On Apr 15, 10:28 am, Vitaliy Yanchuk <[email protected]> wrote:
> It is about rails2
>
> I have a gem that I install as a plugin, I want in development
> environment use it from vendor/plugins folder and if it is installed in
> system to use the systems gem
>
> But if I use config.gem in environment.rb it raises an error about
> missing gem even if it is present in vendor/plugins
>

Plugins can live in gems, but there's not an equivalent for the other
direction. What you'll want to do is to add the config.gem line and
then do:

rake gems:unpack GEM=whatever_the_gem_name_is

which will unpack the gem to vendor/gems along with the needed gemspec
to get things working.

--Matt Jones

-- 
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