srividya_sharma

Export Controller in RoR

Recommended Posts

Hi there.

 

I'm not sure if this is a bug or if I've done something wrong but, the only way I could get the "save as image" functionality in V3.1 for RoR to work is to alter the code.

 

 

 

In the readme.txt, you say

 

1. Copy the controllers (1,2,3) into controllers/Fusioncharts in your application.

 

 

 

If I use Fusioncharts as my directory name (instead of fusioncharts, note lowercase 'F') in my controllers directory as specified in the readme.txt, I get this error:

 

uninitialized constant Fusioncharts::FcExporterController

 

 

 

But, if I use fusioncharts as my directory name (as it is in your packaged code) instead, I keep getting this error:

 

statusMessage=Export Resource not found

 

 

 

I found that if I changed line 80 in controllers/fusioncharts/fc_exporter_controller.rb to

 

resource_err_codes = validate_resources(path.downcase)

 

it worked perfectly :)

 

 

 

Hope this helps anyone else who runs into this issue and if it is a bug that it gets fixed :)

 

Thanks.

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