# Controller layout of private messaging

**URL:** <https://www.ruby-forum.com/t/controller-layout-of-private-messaging/125977>\
**Category:** Rails\
**Created:** [January 14, 2008, 11:12am UTC](https://www.ruby-forum.com/t/controller-layout-of-private-messaging/125977 "2008-01-14T11:12:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chubbs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@Chubbs](https://www.ruby-forum.com/u/Chubbs)\
**Post date:** [January 14, 2008, 11:12am UTC](https://www.ruby-forum.com/t/controller-layout-of-private-messaging/125977/1 "2008-01-14T11:12:14Z")

</div>

Hey am after some advice on how to layout my controllers and models  
for inbox/sentbox private messaging functionality.

i have it all working at the moment but i believe it to be quite  
messy. i have this so far.

controllers/actions:  
mbox/notification\_controller.rb

- list
- destroy  
mbox/privmsg\_controller.rb
- inbox
- sentbox
- destroy  
mbox/user\_comments\_controller.rb
- list
- destroy  
privmsg\_controller.rb
- new
- show
- reply

can someone give me some advice on a good way to layout my  
controller’s actions, to simulate a linked-in sorta messaging system?
