title: Using Chartkick in Rails 4.0
body: <p>How can i use Chartkick in rails 4.0.</p>
  
  <p>in Gem I added:</p>
  
  <blockquote>
    <p>gem "chartkick"</p>
  </blockquote>
  
  <p>and in my view for example i added this:</p>
  
  <pre><code>&lt;%= pie_chart({"Football" =&gt; 10, "Basketball" =&gt; 5}) %&gt;
  </code></pre>
  
  <p>but the page only show Loading...
  generated Html:</p>
  
  <pre><code>&lt;div id="chart-1" style="height: 300px; text-align: center; color:
  #999; line-height: 300px; font-size: 14px; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif;"&gt;   Loading... &lt;/div&gt; &lt;script type="text/javascript"&gt;   new Chartkick.PieChart("chart-1", {"Football":10,"Basketball":5}, {}); &lt;/script&gt;
  </code></pre>