Is there a way to call a controller/action pair from another controller
as well as render the view for that pair? I have tried using “render
‘ctrl/action’” and that works, but the controller code isn’t called
(only the view is rendered). A redirect_to isn’t desirable either as I
want the resulting content to be rendered in the current controller’s
I have thought of a workaround, but it seems to violate some design
principles of Rails. That is, the put the controller code for the
actions that I need to do this with in helpers and let the action
essentially call the controller. However, this doesn’t seem like a very
elegant solution. Is there a better way?
P.S. I thought I read a topic along these lines before, but I can’t
seem to locate it now.