According to the Bootstrap doc about Modal: http://twitter.imtqy.com/bootstrap/javascript.html#modals
If you are using api data, you can alternatively use the href tag to indicate the remote source. An example of this is shown below:
<a data-toggle="modal" href="remote.html" data-target="#modal">click me</a>
Thus, your request can be fulfilled by disabling the Rails UJS api data and using Bootstrap's. Like this
<a data-toggle="modal" href="remote.html" data-target="#modal" data-remote="false">click me</a>
In your case. Server side code
= link_to 'Click here', '/path_for_bootstrap', data: {toggle: 'modal', remote: false, target: "#myModal"}
Refresh . Or better, there is no need to define remote at all, because no one needs it, either Bootstrap or UJS!
= link_to 'Click here', '/path_for_bootstrap', data: {toggle: 'modal', target: "#myModal"}
source share