Using Chartkick in Rails 4.0

前端 未结 5 1550
失恋的感觉
失恋的感觉 2020-12-30 06:58

How can i use Chartkick in rails 4.0.

in Gem I added:

gem \"chartkick\"

and in my view for example i added this:

5条回答
  •  生来不讨喜
    2020-12-30 07:47

    Be sure to include the JavaScript files before the charts.

    <%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %>
    

提交回复
热议问题