Render question

I’d like to have an action in one controller, render the view from
another
controller. The code that I know is wrong but would like to use is:
render :controller => “x” :action => “y”

I could simply copy controller X’s view to the current controller, but
I’m
trying to minimize duplicated code. Any ideas?

i think you can just give the path to the render like

render “controllera/filename”

Joe C. wrote:

I’d like to have an action in one controller, render the view from
another
controller. The code that I know is wrong but would like to use is:
render :controller => “x” :action => “y”

I could simply copy controller X’s view to the current controller, but
I’m
trying to minimize duplicated code. Any ideas?