IamPersistent
2009-May-23 00:34 UTC
Behavior for ApplicationController in Engine in Rails 3
I am wondering what the expected behavior for ApplicationControllers is in an Engine when there is an ApplicationController in the app. Also what is the expected behavior for the multiple Engines with ApplicationControllers. I''m asking because I''m getting Tog ready for Rails 3. I have it working on edge, but I have to copy the code from the ApplicationController in the plugins into the main ApplicationController for the app. I''m sure there must be a better way than this.
James Adam
2009-May-24 21:38 UTC
Re: Behavior for ApplicationController in Engine in Rails 3
On May 23, 1:34 am, IamPersistent <IamPersist...@gmail.com> wrote:> I''m asking because I''m getting Tog ready for Rails 3. I have it > working on edge, but I have to copy the code from the > ApplicationController in the plugins into the main > ApplicationController for the app. I''m sure there must be a better > way than this.Until it''s clear how this will work, I''d suggest your engines distribute behaviour that needs to be a part of ApplicationController as modules, which can then be either manually or automatically included into the application''s ApplicationController; no copying required. -- James