# Nested Resources and Redirects

**URL:** <https://www.ruby-forum.com/t/nested-resources-and-redirects/176417>\
**Category:** Rails\
**Created:** [September 30, 2009, 9:05am UTC](https://www.ruby-forum.com/t/nested-resources-and-redirects/176417 "2009-09-30T09:05:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dustin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@dustin](https://www.ruby-forum.com/u/dustin)\
**Post date:** [September 30, 2009, 9:05am UTC](https://www.ruby-forum.com/t/nested-resources-and-redirects/176417/1 "2009-09-30T09:05:27Z")

</div>

If I am keeping my resources at no more than one level deep how do I  
redirect a user back to the appropriate controller?

Let’s say I have Persons who can create Emails that have multiple  
Email Items.

Persons \> Emails \> Email Items

After a person creates a particular email item for a particular email  
how can I make sure they are redirected back the email that 1)belongs  
to them and 2) is the current one they were working on?

Thanks
