Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

undefined method `from_gemfile' for Bundler::Definition:Class #1

Open
r3ap3r2004 opened this issue Aug 13, 2010 · 2 comments
Open

undefined method `from_gemfile' for Bundler::Definition:Class #1

r3ap3r2004 opened this issue Aug 13, 2010 · 2 comments

Comments

@r3ap3r2004
Copy link

The latest version of Bundler 1.0.0.rc.4 doesn't appear to have a from_gemfile method.

This is being called from the my_engine/engine.rb file inside the my_engine.require_dependencies initializer.

Not being the bundler expert I'm not really sure how to solve the problem, but the engineer "rails g my_engine:install" method from inside the host does not work without it.

@phs
Copy link
Owner

phs commented Aug 13, 2010

As a work around, you can comment out that initializer, and instead maintain your list of dependencies within the gemspec block inside your Rakefile (a la jeweler.)

I know maintaining two lists is annoying, but it should get you by while I take a look.

@r3ap3r2004
Copy link
Author

That's actually what I did. I'm now having another issue that I can't seem to figure out.
See:
http://github.com/phs/engineer/issues/issue/2

When I start the host application and visit a route in my engine the stylesheet and javascript links that get created inside the engine all have the appropriate ASSET_PREFIX appended to them like they should and everything works great.

But, when I reload the page (without restarting the server) any subsequent page view is missing the ASSET_PREFIX which of course causes all the necessary javascript and stylesheets to look in /javascripts, etc instead of /my_engine/javascripts like it should.

I am running rails 3.0.0-rc (although I have also tried with the latest rails master code with the same results).

Any insight into how to fix this would be greatly appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants