how to open a pop-up page in rails 3 and load data from database

I am using ruby-on-rails + psql

I have list of pages. On some page click I have to open page in pop-up.

How I'll load data in that pop-up for specific page.

Are you opening it using javascript, without contacting the server, or ajax?

If javascript then you will have to provide all the data it needs to the view from which it pops, if ajax then provide the data in the normal way in the ajax action.

Colin