# How to properly nest controllers?

**URL:** <https://www.ruby-forum.com/t/how-to-properly-nest-controllers/125085>\
**Category:** Rails\
**Created:** [January 5, 2008, 5:38am UTC](https://www.ruby-forum.com/t/how-to-properly-nest-controllers/125085 "2008-01-05T05:38:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [January 5, 2008, 5:38am UTC](https://www.ruby-forum.com/t/how-to-properly-nest-controllers/125085/1 "2008-01-05T05:38:21Z")

</div>

I hwas just curious what kind of “convention” everyone uses when nesting  
controllers. Every time I put controllers under a folder I have them  
extend a controller with the same name. Is this a good practice? For  
example, I have an admin folder and all of the controllers under that  
folder extend the AdminController instead of the ApplicationController.  
I feel like maybe this is a little sloppy? I just need a little  
direction or some suggestions as to the proper way to nest controllers.  
Thanks!
