# How can I render a partial from other controller?

**URL:** <https://discuss.rubyonrails.org/t/how-can-i-render-a-partial-from-other-controller/41048>\
**Category:** rubyonrails-talk\
**Created:** [March 31, 2009, 5:53am UTC](https://discuss.rubyonrails.org/t/how-can-i-render-a-partial-from-other-controller/41048 "2009-03-31T05:53:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [March 31, 2009, 5:53am UTC](https://discuss.rubyonrails.org/t/how-can-i-render-a-partial-from-other-controller/41048/1 "2009-03-31T05:53:33Z")

</div>

I use this code to render a partial:

\<%= render :partial=\>'test' %\>

The test is not located in the current controller. How can I point it to other place?

---

<div class="post-metadata">

**Author:** ![David\_Knorr1](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@David\_Knorr1](https://discuss.rubyonrails.org/u/David_Knorr1)\
**Post date:** [March 31, 2009, 5:58am UTC](https://discuss.rubyonrails.org/t/how-can-i-render-a-partial-from-other-controller/41048/2 "2009-03-31T05:58:54Z")

</div>

\<%= render :partial =\> 'people/test' %\>

In this case, the name of the controller is PeopleController. See the documentation for partial rendering: [http://api.rubyonrails.org/classes/ActionView/Partials.html](http://api.rubyonrails.org/classes/ActionView/Partials.html)
