How to show twitter bootstrap modal via JS request in rails?
问题 I want to show a twitter bootstrap modal as a response to a JS request. My show.js.erb function looks something like this: $(document).ready(function() { $('#dialog').modal('show') }); Here "dialog" is the modal's id. The modal code itself looks something like this: <div id="dialog" class="modal hide fade"> <div class="modal-header"> <a href="#" class="close">×</a> <h3> Showing Modal </h3> </div> <div class="modal-body"> I need to show up! </div> <div class="modal-footer"> <a href="#" class=