FusionCharts Forum: Issue With Examples - FusionCharts Forum

Jump to content

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

Issue With Examples Basic Examples

#1 User is offline   dsnarus 

  • Forum Newbie
  • Group: Members
  • Posts: 5
  • Joined: 11-July 11

Posted 11 July 2011 - 06:53 PM

Hello All,

I am having some issues with getting the basic examples up and running. I keep getting the following error:

NameError in Basic_example#simple_chart
Showing ~/app/views/basic_example/simple_chart.html.erb where line #5 raised:
uninitialized constant FusionChartsHelper::Fusioncharts
app/helpers/fusion_charts_helper.rb:86:in `render_chart'

line 86 is:
fcParams =Fusioncharts::FcParameters.new(chart_swf,chart_id,chart_width,chart_height,debug_mode_num,register_with_js_num,data_source, data_format,w_mode,color,scale_mode,lang,detect_flash_version,auto_install_redirect,renderer,render_at)

I believe the issue is that I do not have a model for the object, but I'm not sure how the model should be defined since there isn't an example of it in the documentation or in the Sample App. Any and all help would be appreciated :)
0

Other Replies To This Topic

#2 User is offline   dsnarus 

  • Forum Newbie
  • Group: Members
  • Posts: 5
  • Joined: 11-July 11

Posted 11 July 2011 - 09:26 PM

To add to this, I think the problem might be more fundamental. I'm looking in the SampleApp/lib and I don't see a .rb for the Fusioncharts module. I have a folder labeled fusioncharts that has fc_parameters.rb in it and an exporter folder, but I can't find the actual module for Fusioncharts.



View Postdsnarus, on 11 July 2011 - 06:53 PM, said:

Hello All,

I am having some issues with getting the basic examples up and running. I keep getting the following error:

NameError in Basic_example#simple_chart
Showing ~/app/views/basic_example/simple_chart.html.erb where line #5 raised:
uninitialized constant FusionChartsHelper::Fusioncharts
app/helpers/fusion_charts_helper.rb:86:in `render_chart'

line 86 is:
fcParams =Fusioncharts::FcParameters.new(chart_swf,chart_id,chart_width,chart_height,debug_mode_num,register_with_js_num,data_source, data_format,w_mode,color,scale_mode,lang,detect_flash_version,auto_install_redirect,renderer,render_at)

I believe the issue is that I do not have a model for the object, but I'm not sure how the model should be defined since there isn't an example of it in the documentation or in the Sample App. Any and all help would be appreciated :)

0

Other Replies To This Topic

#3 User is offline   srividya_sharma 

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

Posted 12 July 2011 - 05:47 AM

Hi,

Assuming that you are using Rails3, can you please try the Rails3 sample provided here: http://forum.fusionc...le-application/

Hope this helps. :)

Srividya
regards,
Srividya Sharma
0

Other Replies To This Topic

#4 User is offline   dsnarus 

  • Forum Newbie
  • Group: Members
  • Posts: 5
  • Joined: 11-July 11

Posted 18 July 2011 - 06:13 PM

View Postsrividya_sharma, on 12 July 2011 - 05:47 AM, said:

Hi,

Assuming that you are using Rails3, can you please try the Rails3 sample provided here: http://forum.fusionc...le-application/

Hope this helps. :)

Srividya



Figured it out, was a Rails issue. It was ignoring the public folder for some reason. Server reboot and forcing the boot process to load the public folder once worked.

Thanks for the help!
0

Other Replies To This Topic

#5 User is offline   Angshu 

  • Supreme Being
  • Group: Administrators
  • Posts: 3222
  • Joined: 08-December 10

Posted 19 July 2011 - 06:02 AM

Hi,

Glad to know that you have managed to resolve your problem.

Happy FusionCharting!Posted Image
Help us improve our documentation with your precious feedback at:

http://documentation...sioncharts.com/

Best,

Angshu

Follow us on @Twitter


0

Other Replies To This Topic

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