# Engines And Controller Modules

**URL:** <https://www.ruby-forum.com/t/engines-and-controller-modules/104020>\
**Category:** Rails\
**Created:** [May 13, 2007, 12:44am UTC](https://www.ruby-forum.com/t/engines-and-controller-modules/104020 "2007-05-13T00:44:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![soabirw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@soabirw](https://www.ruby-forum.com/u/soabirw)\
**Post date:** [May 13, 2007, 12:44am UTC](https://www.ruby-forum.com/t/engines-and-controller-modules/104020/1 "2007-05-13T00:44:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![soabirw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@soabirw](https://www.ruby-forum.com/u/soabirw)\
**Post date:** [May 13, 2007, 12:45am UTC](https://www.ruby-forum.com/t/engines-and-controller-modules/104020/2 "2007-05-13T00:45:32Z")

</div>

dear sender,  
i´m out of the office until may 29th.  
your email will not be forwarded.  
for urgent stuff please contact removed\_email\_address@domain.invalid  
kind regards,  
alexander

---

<div class="post-metadata">

**Author:** ![soabirw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@soabirw](https://www.ruby-forum.com/u/soabirw)\
**Post date:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/engines-and-controller-modules/104020/3 "2007-09-25T23:04:08Z")

</div>

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
