Bootstrap Modal + Remote Content + Rails way
First create a button or link that triggers the Bootstrap Modal. And In that link the "data-target " should point to Bootstrap Modal and you also need to provide an href attribute that should point to a controller#action using routes. <!-- Button trigger modal --> <a href = "/page_to_fetch_remote_content/" class= "btn btn-primary btn-lg" data-toggle= "modal" data-target= "#myModal" > Launch demo modal </a> <!-- Modal --> <div class= "modal fade" id= "myModal" tabindex= "-1" role= "dialog" aria-labelledby= "myModalLabel" aria-hidden= "true" > <div class= "modal-dialog" > <div class= "modal-content" > <div class= "modal-header" > <button type= "button" class= "close" data-dismiss= "modal" aria-hidden= "true" ...