I am using bootstrap modals and Ruby on Rails. I was able to display the modal fine but I am having trouble using Javascript to manipulate the contents of the modal. I am no
$('#modals .modal').on('shown.bs.modal', function () { // do something… });