Modal popup in rails

Modal popups are not rails functionality. It's a client-side JavaScript.
As you are using jQuery, dig information here:

http://twitter.github.com/bootstrap/javascript.html#modals
http://jqueryui.com/demos/dialog/