I´ve got a problem rendering a Gantt Chart in rails. I´m charting from arrays this is html.erb code:
<%
# The xml is obtained as a string from builder template.
str_xml = render "testplans/ss_gantt_data.builder",{:year_data => @years, :task_data => @tasks, :milestone_data => @milestones}
#Create the chart -Gantt Chart with data contained in str_xml
render_chart '/FusionCharts/FCF_Gantt.swf', '', str_xml, 'monitoringPlan', 600, 300, false, false do-%>
<% end -%>
I´ve checked that the xml generated by the builder is correct, I think...and It look like the xml attached.
And nothing but the word "Chart" is rendered!!
I think that the xml generated and the way I´m calling the render chart method are correct, so I´m going crazy!:crazy:
I don´t know where is the problem, if anyone could help me with this I would be so grateful!!
Thank you all!!!
Attached File(s)
-
str_xml2.xml (2.1K)
Number of downloads: 31

Back to top
MultiQuote