# Modular controllers and indexes

**URL:** <https://www.ruby-forum.com/t/modular-controllers-and-indexes/108400>\
**Category:** Rails\
**Created:** [July 3, 2007, 5:18am UTC](https://www.ruby-forum.com/t/modular-controllers-and-indexes/108400 "2007-07-03T05:18:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jables](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/58956e/32.png) [@Jables](https://www.ruby-forum.com/u/Jables)\
**Post date:** [July 3, 2007, 5:18am UTC](https://www.ruby-forum.com/t/modular-controllers-and-indexes/108400/1 "2007-07-03T05:18:50Z")

</div>

When you are modularizing your controllers how do you create a default  
page for that module. For instance say you are creating an admin  
section so you have your controllers in an admin folder, how do you  
create the “index” controller. Put another way: if you had a folder:  
app/controllers/admin/ with controllers such as  
something\_controller.rb defined in it’s file as  
Admin::SomethingController, what do you do so you can browse to  
yoursite/admin and see a default controller such as  
admin\_controller.rb? Thanks!
