Creating Modals in Rails

See the original posting on DZone Python

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: