# Controller layouts

**URL:** <https://www.ruby-forum.com/t/controller-layouts/125776>\
**Category:** Rails\
**Created:** [January 11, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/controller-layouts/125776 "2008-01-11T23:09:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snacktime](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Post date:** [January 11, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/controller-layouts/125776/1 "2008-01-11T23:09:57Z")

</div>

This is a particular example of a situation where I’m having trouble  
coming up with a clean controller layout. Say I have a single view  
with some ajax slide downs for things such as the email address, name,  
address, etc… The data lives in 2 different models. CRUD fits  
nicely, but I’m working with multiple models/resources. If I put it  
all in a single controller that works, but it seems messy and and I  
use REST won’t I have a bunch of custom REST routing? If I use two  
controllers, how do I render to the same view from both of them?

Chris
