On 3/22/06, Lance Ditkins <[EMAIL PROTECTED]> wrote:
> After some more digging around, I realized that the include line that
> engines require in the application.rb and application_helper.rb load the
> default module in the engines' /lib directory.  So I'll just stick the
> methods in there.  (Right?)

That'd be a sensible place, yeah. Just put those methods into a module
and either include it manually in your application, or send
ApplicationController (or ActionController::Base, probably) an
:include message from your init[_engine].rb to have it work
automagically.

> P.S.  Engines have been a lifesaver for me so far.  Thanks to the
> developers for all of the hard work.

Glad you're finding them useful :)

--
* J *
  ~
_______________________________________________
engine-developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org

Reply via email to