# Template Root in components

**URL:** <https://www.ruby-forum.com/t/template-root-in-components/113687>\
**Category:** Rails\
**Created:** [September 3, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/template-root-in-components/113687 "2007-09-03T23:23:21Z")\
**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:** [September 3, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/template-root-in-components/113687/1 "2007-09-03T23:23:21Z")

</div>

Does anyone know how to manipulate routing when using components.  
I know you can set the root to your components directory by putting a  
“uses\_component\_template\_root” at the top of your controller in a  
component. That works well to modularize some code, but if your root  
is the components directory, how do you redirect to controllers in  
your app directory? Is this possible? Thanks

JB
