The short answer - this is expected behaviour.

While that might seem intuitively that it should work, the engines
plugin won't support that type of behaviour - essentially because
there's nothing the name 'application' (which is what gets passed to
require_or_load) to indicate that this is a controller file, rather
than a library or a model - from the name alone, it could be any ruby
file.

The file 'application_helper' works because the Engines mechanism can
determine that it is a helper automatically, and do the code mixing
you might expect.

- james

On 3/21/06, Lance Ditkins <[EMAIL PROTECTED]> wrote:
> A quick question:
>
>
> If I drop methods into an my_engine/controllers/application.rb file
> should they be picked up by the app using the engine? They don't seem to
> be in some initial tests. (Tho helpers/application_helper.rb methods are
> picked up ok.)
>
> Many thanks...
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> engine-developers mailing list
> [email protected]
> http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
>


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

Reply via email to