Nested resources & render


#1

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

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

Saludos
Javier


#2

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

I think you can do

render :template => ‘articles/show’

Jan