Nested resources & render

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs