Using Chartkick in Rails 4.0

前端 未结 5 1576
失恋的感觉
失恋的感觉 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 08:02

    somehow I needed to add these three lines to get things working...but still I get a few warnings... In v3.0 they say they have some breaking changes in regards to jsapi... confusing.

    
    
    <%= javascript_include_tag "//www.gstatic.com/charts/loader.js", "chartkick" %>
    

提交回复
热议问题