On 04/09/2011, at 11:26 AM, Tim Uckun wrote:

> First of all I should clarify that my engine is not called Xebec. I am
> using the Xebec gem in my engine. Xebec is a gem to create menus in
> your application. I was hoping that I could create menus (all of which
> are helpers) in my engine and then have the parent apps make use of
> those menus by calling  <%= top_menu %> in their templates or views.

Okay - I just was using what I could guess for an example. Adapt as you need to.

> Ideally rails would process the Gemfile in the engine(s) and then the
> Gemfile in the parent app but it doesn't seem to be doing that.

Bundler is for packaging your gem, not for loading it when used elsewhere - so 
Rails isn't going to look at gems/engines it's using to see if they have a 
Gemfile. It's not guaranteed other gems would use Bundler to manage their 
dependencies. Manually requiring what you need in that engine is the way to go.

-- 
Pat

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" 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/rails-oceania?hl=en.

Reply via email to