H.J. Blok wrote: > Samuel Kadolph wrote: > >> From the code you posted, I don't see a problem. >> >> I would suggest following the structure of each framework and how they >> use Railties.
<snip> > Thanks for your help, I've tried to implement what you've written, but > somehow it still raises 'uninitialized constant MyEngine::Application > (NameError)'. Found the problem, the initializers present in 'config/initializers' caused the 'uninitialized constant' error. My solution for this is to use 'Rails.application.config...' instead of 'MyEngine::Application.config...' in the 'config/initializers' file(s). Now deploying it as gem and using it as standalone application both are possible. HJ -- Posted via http://www.ruby-forum.com/. -- 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.

