Sign in to follow this  
Eidher

undefined method `renderChart'

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this