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?
Page 1 of 1
undefined method `renderChart'
Other Replies To This Topic
#2
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
Srividya Sharma
Other Replies To This Topic
Page 1 of 1

Back to top
MultiQuote
