Chartkick
Add Chartkick to your Rails app
Used 37 times
B
Benjamin Darcet
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/VeKs5z"
Template Source
Review the code before running this template on your machine.
run "bundle add chartkick"
run "yarn add chartkick chart.js"
inject_into_file 'app/javascript/packs/application.js' do <<~EOF
require("chartkick")
require("chart.js")
EOF
end