I'm trying to implement the Gem Chartkick in a Rails application, but I'm having a little problem.
My application has a relationship between two models:
class Animal < ActiveRecord::Base
belongs_to :race
end
In my view, I'm trying to present the Percentage of Animals per Race.
<%= pie_chart @animals.group(:race).count %>
The charts are being presented as follows:
How do I display the race names and not Race: 0x007f6d48812970 ?