Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: rmagnum2002
you are populating the statistics_chart div with data from data-statistics attribute of that div, look in inspect element and you'll see the html5 attribute called data-statistics with an array of hashes inside.
very handy, thank you :)
thank you, somehow it didn't work with filtering, but I used
@medical_consultation.medicine_ids =  unless params[:medical_consultation][:medicine_ids].present?
directly in update and create action and now it works nice.
thanks Nicolai Seerup.. was facing this problem and you pulled me out.
nice piece of app. I finally get it right. Thanks, I've been looking for this for a month already.