# Redirect\_to from component

**URL:** <https://www.ruby-forum.com/t/redirect-to-from-component/112838>\
**Category:** Rails\
**Created:** [August 23, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/redirect-to-from-component/112838 "2007-08-23T18:59:14Z")\
**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:** [August 23, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/redirect-to-from-component/112838/1 "2007-08-23T18:59:14Z")

</div>

I am trying to redirect to one of my main controllers from a  
component. I am using use\_component\_template\_root inside the  
component so any redirects use the component as the root. Is there a  
way to redirect out of components if you are using the components  
directory as root?

JB
