However, we will also style the charts to make it look like all the Premium charts out there.
We will start with including the CDN style and script between our <head> tags in layouts/application.html.erb
<link rel="stylesheet" href="https://firstname.lastname@example.org/dist/Chart.min.css"><script src="https://email@example.com/dist/Chart.min.js"></script>
Then we add within the page .erb partial (eg. pages/index.html.erb) the HTML tag:
<canvas id="myChart" width="960" height="200"></canvas>
and the default script for initializing our chart:
<script>var ctx = document.getElementById('myChart');var myChart = new Chart(ctx…
This guide will get you started with both Rails 5 and Bootstrap 4 as well as will dive in some bootstrap 4 theming and finally will deploy and cover some of the quickest ways to get a Rails 5 App running on Heroku.
We start our rails theme development with running the following command:
$ rails new stack
Once the Rails 5 scaffold has been finished we start the server by running:
$ rails s