Posts by user18871 • 16 points
1 post
-
0
votes2
answers152
viewsA: Chartkick Problem in a Rails Application
You need to join before invoking Chartkick: <%= pie_chart @animals.joins(:race).group('races.name').count %> Note: I did not test the code above. Source:…