In your application.js (or whatever .js-file you prefer) include this:
Then, in your views add the
data-popup-attribute to the
This is basically taken from [here](http://stackoverflow.com/a/8828841 “”). I have just added two extra parameters to
P.S.: You can follow me on Twitter.