Routing Error On Server-Side Export

Recommended Posts



I'm trying to put in place a server-side export my charts.


Here is what I did so far:


- Copied fc_exporter_controller.rb, fc_exporter_img_controller.rb , fc_exporter_pdf_controller.rb controllers in Controllers/Fusioncharts/

- Copied error_handler.rb , error_messages.rb , generator.rb , properties.rb , save_helper.rb in Lib/fusioncharts/exporter/

- Copied error.html.erb into the Views folder


I have set the following tag on my chart:



:exportAtClient => 0,





I have modified the @@SAVEPATH to "./public/export/" in the properties.rb file

I have installed the gem rmagick


Now when I try to export my chart, i got a "RoutingError (No route matches "/Fusioncharts/fc_exporter/index")" which seems there is no route for that action (By the way there is no mention of that in the Readme.txt)

So I added a route => match 'Fusioncharts/fc_exporter/index' => 'fc_exporter#index'

And then i got this error: "RoutingError (uninitialized constant FcExporterController)"


Any clue on what I'm doing wrong?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now