# Render partials in folders

**URL:** <https://www.ruby-forum.com/t/render-partials-in-folders/96249>\
**Category:** Rails\
**Created:** [June 27, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/render-partials-in-folders/96249 "2006-06-27T18:24:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larrytheliquid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@Larrytheliquid](https://www.ruby-forum.com/u/Larrytheliquid)\
**Post date:** [June 27, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/render-partials-in-folders/96249/1 "2006-06-27T18:24:55Z")

</div>

Right now I have partials in a view folder corresponding with my  
controller.

ie: controller: example, view: example/\_partial.rhtml  
and I call it with render :partial =\> ‘partial’

How do I add the partial to another folder and call it?  
ie: controller: example, view: example/new\_folder/\_partial.rhtml  
render :partial =\> ‘new\_folder/partial’ # does NOT work

---

<div class="post-metadata">

**Author:** ![Larrytheliquid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@Larrytheliquid](https://www.ruby-forum.com/u/Larrytheliquid)\
**Post date:** [June 27, 2006, 6:28pm UTC](https://www.ruby-forum.com/t/render-partials-in-folders/96249/2 "2006-06-27T18:28:10Z")

</div>

Hi Larry ~

Try:

render :partial =\> ‘/example/new\_folder/partial’

~ Ben

---

<div class="post-metadata">

**Author:** ![Larrytheliquid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@Larrytheliquid](https://www.ruby-forum.com/u/Larrytheliquid)\
**Post date:** [June 27, 2006, 8:13pm UTC](https://www.ruby-forum.com/t/render-partials-in-folders/96249/3 "2006-06-27T20:13:04Z")

</div>

Thanks Ben,

I got it working by appending an underscore to the physical folder name

so now:  
render :partial =\> ‘new\_folder/partial’ # DOES work
