Forum: Ruby on Rails Engines And Controller Modules

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0fe3ca023db22615b340c5b3ec704b54?d=identicon&s=25 Soabirw (Guest)
on 2007-05-13 00:44
(Received via mailing list)
I've been using engines over the weekend and have been very pleased
with my smaller test apps.  But I'm now trying a more complex app and
running into some issues.  This app uses the controller modules, I.E.

class Admin::UsersController < ApplicationController

So the views are in app/views/admin/users.

With engines the site functions properly until it needs to go into an
Admin controller.  Then it says it can't find the view.  So it seems
to me it no longer looks in the engine for the view, but tries to find
it locally.  Anybody know of a fix for this?

Eric
7a03066e8719f4d938bf622351ce4e7b?d=identicon&s=25 unknown (Guest)
on 2007-05-13 00:45
(Received via mailing list)
dear sender,
i´m out of the office until may 29th.
your email will not be forwarded.
for urgent stuff please contact joern@fork.de
kind regards,
alexander
0fe3ca023db22615b340c5b3ec704b54?d=identicon&s=25 Eric Jensen (Guest)
on 2007-09-25 23:04
(Received via mailing list)
Sure enough, that made it so the views would load, but it killed
overriding.  This is the only thing I can't manage to get working.  I
looked in template.rb to see if I could figure out what was happening,
but nothing I send to the logs show up, so it seems it's not even
being hit.

Anybody have any ideas?

Eric
This topic is locked and can not be replied to.