Creating Modals in Rails

Instead of writing a JavaScript application for working with remote modals in your Rails application, a much simpler approach is to render our views on a server and display them as modals. In this tutorial, we will explain how to implement this by using Bootstrap modals.
Step 1: Initial Setup
Add gem ‘bootstrap’ and gem ‘popperjs’ to your gemfile. Also, in your application.js file, include this in the following order:

Link: https://dzone.com/articles/rails-creating-modals?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev