# Using partials insisde a partial

**URL:** <https://www.ruby-forum.com/t/using-partials-insisde-a-partial/92886>\
**Category:** Rails\
**Created:** [April 25, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/using-partials-insisde-a-partial/92886 "2007-04-25T12:34:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![senthil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@senthil](https://www.ruby-forum.com/u/senthil)\
**Post date:** [April 25, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/using-partials-insisde-a-partial/92886/1 "2007-04-25T12:34:28Z")

</div>

HI ,  
I am trying to use a partial inside a partial.Basically i am  
using ajax support of rails.I am updating a div with partial ,lets say  
a.  
Now i want to include a partial b with in a. I am trying this ,  
but the html contents are not displayed.  
Can any one knows how to do it??

thanks & regards,  
senthil kumar

---

<div class="post-metadata">

**Author:** ![senthil](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@senthil](https://www.ruby-forum.com/u/senthil)\
**Post date:** [April 25, 2007, 12:53pm UTC](https://www.ruby-forum.com/t/using-partials-insisde-a-partial/92886/2 "2007-04-25T12:53:36Z")

</div>

> ```
> I am trying to use a partial inside a partial.Basically i am
> 
> ```
> 
> using ajax support of rails.I am updating a div with partial ,lets say  
> a.  
> Now i want to include a partial b with in a. I am trying this ,  
> but the html contents are not displayed.  
> Can any one knows how to do it??

Try specifying the path to your nested partial.

I.e. instead of

\<%= render :partial =\> ‘foo’ … %\>

Do this

\<%= render :partial =\> ‘shared/foo’ … %\>

or wherever \_foo.rhtml happens to live.

Regards,  
Andy S.
