As stated earlier in this book, to create a Bootstrap modal, we need a
<div> element with the
.modal class. We will also add the
.fade class to apply the fading transition. It is the only transition animation provided by Bootstrap.
application.html.erbfile, add the markup for the modal, as follows:
<div class="modal fade"> </div>
shoppingCart. So, let's add it to our markup:
<div class="modal fade" id="shoppingCart"> </div>