I have followed all directions for exporting image to server disk for Ruby on Rails, as seen in the documentation and the "Readme.txt" found in the exporter folder for RoR.
I can't get any of the image-exporting code to execute.
Here's what I have:
FILES:
/app/controllers/Fusioncharts => fc_exporter_controller.rb, fc_exporter_img_controller.rb, fc_exporter_pdf_controller.rb
/lib/fusioncharts/exporter => error_handler.rb, error_messages.rb, generator.rb, properties.rb, save_helper.rb
/app/views/fc_exporter => error.html.erb
THE XML IN MY CONTROLLER (code won't show, follow link to pastie):
http://pastie.org/897745
MY VIEW (with callback JavaScript):
http://pastie.org/897733
/lib/fusioncharts/exporter/properties.rb:
http://pastie.org/897737
ENVIRONMENT:
FusionCharts v3.1 (developer license)
RMagick 2.9.0 and it's dependencies
Rails 2.1.0 and it's dependencies
I also have puts statements, e.g.
puts "fc_exporter => index"
for every action, and for every file in the /app/controllers/Fusioncharts directory. This is so I can look at the console and see if any of the code is being executed, and none of it is being executed.
A PNG image of the chart should be stored in the /public/images/charts directory -- but it's not!
The chart otherwise shows up on the page perfectly.
If I right-click on the chart and select 'Save as PNG' the "capturing data" progress bar shows and appears to complete, but no image is being stored in /public/images/charts. The image might have been stored elsewhere, but I was unable to find it.
What am I missing? Thanks in advance!!
~fiend

Back to top
MultiQuote
