Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: app/controllers/admin/dashboard_controller.rb
- ===================================================================
- --- app/controllers/admin/dashboard_controller.rb (revision 1210)
- +++ app/controllers/admin/dashboard_controller.rb (working copy)
- @@ -39,8 +39,11 @@
- data = age_data(type)
- g.data '', data.collect{ |a| a.count.to_i }
- - g.labels = data.collect{ |a| a.age_range }
- -
- +
- + data.each_with_index do |a, index|
- + g.labels.update index => a.age_range
- + end
- +
- send_graph(g)
- end
Add Comment
Please, Sign In to add comment