FusionCharts Forum: undefined method `renderChart' - FusionCharts Forum

Jump to content

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

undefined method `renderChart'

#1 User is offline   Eidher 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 21-December 07

Posted 29 August 2008 - 04:41 PM

I'm doing this example: Creating a single series chart from data contained in arrays, but I got this error:



undefined method `renderChart'



I pasted the renderChart method in the application.rb.



What's wrong?
0

Other Replies To This Topic

#2 User is offline   srividya_sharma 

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

Posted 30 November 2008 - 09:50 PM

1. In Ruby On Rails, the function is called render_chart. Please verify the name of the function.

2. Usually, you would access the render_chart function from the view. In which case, you have to put the function in application_helper.rb.

3. It is advisable to use fusioncharts_helper.rb present in the lib folder for this purpose and include it in application_helper.rb as shown below:

  require "fusioncharts_helper"
  include FusionChartsHelper

I hope this helps you.

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