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:38 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 17 December 2008 - 10:51 PM

renderChart will usually be used from the view. Hence, this function should be copied to application_helper.rb from where it will be accessible to all the views.

It is recommended to use these functions as part of library modules instead of copying the function into your application_helper.

Srividya

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