# Nested resources & render

**URL:** <https://www.ruby-forum.com/t/nested-resources-render/157933>\
**Category:** Rails\
**Created:** [January 16, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/nested-resources-render/157933 "2009-01-16T18:09:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_CH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Post date:** [January 16, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/nested-resources-render/157933/1 "2009-01-16T18:09:47Z")

</div>

Is there a way to render actions from different controllers? Now  
you’re probably thinking “why isn’t he using redirect\_to?”. Well,  
because I need to display validation-errors on that view and those  
informations would be lost if I use redirect\_to.

Sounds a bit complicated? Tthe following pastie illustrates the  
problem (check line 30):

[http://pastie.textmate.org/362540](http://pastie.textmate.org/362540)

Does anyone have a “restful” solution to this problem?

Saludos  
Javier

---

<div class="post-metadata">

**Author:** ![Javier\_CH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@Javier\_CH](https://www.ruby-forum.com/u/Javier_CH)\
**Post date:** [January 16, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/nested-resources-render/157933/2 "2009-01-16T18:17:26Z")

</div>

- Javier\_CH [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) [2009-01-16 09:08:57 -0800]:

> Is there a way to render actions from different controllers? Now  
> you’re probably thinking “why isn’t he using redirect\_to?”. Well,  
> because I need to display validation-errors on that view and those  
> informations would be lost if I use redirect\_to.
> 
> Sounds a bit complicated? Tthe following pastie illustrates the  
> problem (check line 30):
> 
> [http://pastie.textmate.org/362540](http://pastie.textmate.org/362540)

I think you can do

render :template =\> ‘articles/show’

Jan
