airblade/chartjs-ror

new chart undefined

Closed this issue · 2 comments

using rails 3.2 not sure if that matters here, but looks like it's not finding the Chart js code.
calling via

= horizontal_bar_chart(assessment.chart_data, {})

edit:54 Uncaught ReferenceError: Chart is not definedinitChart @ edit:54

I use this with Rails 3.2 so it's some other problem.

Have you got this in your application.js?

//= require Chart.min

Assuming this is solved...