Integrate Chart.js into Rails Asset Pipeline (current version is 2.6.0)
Add this line to your application's Gemfile:
gem 'chart-js-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install chart-js-rails
Add this to your application.js file:
//= require Chart.min
Visit: http://www.chartjs.org/docs/ for proper Chart.js usage