FusionCharts Forum: ActionController::InvalidAuthenticityToken in Fusioncharts/fc exporterController#index - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ActionController::InvalidAuthenticityToken in Fusioncharts/fc exporterController#index

#1 User is offline   macsig 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 21
  • Joined: 26-May 09

Posted 10 March 2010 - 05:13 PM

Hello there,

I need to save a chart as image so I have followed the instructions that come with the evaluation pack.

I already had in my machine ImageMagick and RMagick gem.



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

2. Copy the lib folder along with lib files (4,5,6,7,8) into lib folder of your application.

3. Copy the fc_exporter folder along with error.html.erb into the views folder of your application.





When I try to save the image the capturing process starts but when it reaches 100% I get



ActionController::InvalidAuthenticityToken in Fusioncharts/fc exporterController#index



What does this mean? Am I missing something?





Thanks



Sig
Alla prossima ...
0

Other Replies To This Topic

#2 User is offline   srividya_sharma 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 01-October 07

Posted 10 March 2010 - 11:07 PM

Hi

This has something to do with protect_from_forgery  token in the Controller.

Please see if you need it. If you don't need it, then remove it.

hope this helps :)

Srividya

regards,
Srividya Sharma
0

Other Replies To This Topic

#3 User is offline   macsig 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 21
  • Joined: 26-May 09

Posted 11 March 2010 - 11:59 AM

Thanks for the reply.

I'd prefer to keep it. Is there a way to make it works with protect_from_forgery on?





Thanks again.
Alla prossima ...
0

Other Replies To This Topic

#4 User is offline   srividya_sharma 

  • Supreme Being
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 943
  • Joined: 01-October 07

Posted 11 March 2010 - 07:54 PM

How about using :except and specify the particular action which handles export?
regards,
Srividya Sharma
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic