I have a design question that I hope someone can help shed some light
I have a view file which generates a chart. Before it can generate the
chart, it needs the input from an XML file.
I have a method in my controller which will generate the XML file and
write it on to the disk.
What I'm struggling with is how to accomplish these two steps with one
link/button click from the view file.
In other words, when I click the link, it will take me to the
controller method which generates the XML file, write to the disk and
then pass the control to the view file that will generate the chart
and present the view.
Where I am at:
When I generate the XML using the Builder Template (rxml), it will not
only write the XML output to the disk but also output the content to
the view. I can't think of a way to pass the control to another view
(rhtml) file that will generate the chart. And also I would like to
suppress the screen output of the XML file from the Builder template,
so that the generating of XML file will be transparent to the user.
Essentially what should happen is a user click the link, he/she gets
the chart back, and will not see the XML output.
Not sure if this makes any sense at all.
Many thanks for any input.