Hi,
Question = From within a View, how can I render the text output from a
separate controller action??? (call it graph/get_data)
So it’s not a partial, as what I want to do is make a separate call to
get the data to display.
Background = I have a two step process for an ad-hoc report. The
first step is to gather the options, then the second action/view is to
display. The thing is in the display view the graph is actually an
embedded Flash object and it gets it’s data via the URL of my
graph/get_data controller/action. To pass the options from the
collect to display steps I used Flash however. So the side effect is
that I can’t just navigate to the graph/get_data URL and see the XML
data anymore, as it relies upon the flash object being there for all
the details of the graph. To aid in bug finding I’m just after a way
(when I’m attempting to display the graph) to see the output from the
graph/get_data controller/action, which is XML using the Rails builder
views.
Thanks