# Relative subdirectory of partials

**URL:** <https://www.ruby-forum.com/t/relative-subdirectory-of-partials/53487>\
**Category:** Rails\
**Created:** [December 14, 2005, 9:22pm UTC](https://www.ruby-forum.com/t/relative-subdirectory-of-partials/53487 "2005-12-14T21:22:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunter\_Peress](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Hunter\_Peress](https://www.ruby-forum.com/u/Hunter_Peress)\
**Post date:** [December 14, 2005, 9:22pm UTC](https://www.ruby-forum.com/t/relative-subdirectory-of-partials/53487/1 "2005-12-14T21:22:46Z")

</div>

if im in the views dir for the railtstest controller and  
render a partial like so: render(:partial=\>‘container/  
thepartial’) then  
it will only work if that partial is in views/container/thepartial  
not if its in  
views/railstest/container/thepartial as I expected.

but what i want is to have a dir called container inside of railstest  
and be  
able to render a partial from there. is this possible?

* * *

Hunter Peress  
removed\_email\_address@domain.invalid  
Web Programmer  
The Santa Fe New Mexican, Inc.
