# Restructuring my rails project

**URL:** <https://www.ruby-forum.com/t/restructuring-my-rails-project/112338>\
**Category:** Rails\
**Created:** [August 17, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/restructuring-my-rails-project/112338 "2007-08-17T17:40:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/839c29/32.png) [@pedz](https://www.ruby-forum.com/u/pedz)\
**Post date:** [August 17, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/restructuring-my-rails-project/112338/1 "2007-08-17T17:40:26Z")

</div>

I currently have two controllers, models, and views called retain\_users  
and retain\_queues. That is going to grow to have retain\_pmrs,  
retain\_customers, etc. So I’m thinking I need to have: retain/quues,  
retain/users, retain/pmrs, retain/…

Couple of questions:

Would my code change from:

class RetainQueuesController \< RetainController

to

Module Retain  
class QueuesController \< RetainController

and the file moved to retain/queues.rb

Or can I keep the same names and just move the files?

The other question is does everything have to match? i.e. do I have to  
move the view, models, and controllers together?

Is there a “How to” already written up on how to do this somewhere?

Thanks,  
Perry
