Linking to url in new browser window

Hi,
I have lots of pdfs stored in a database and I am rendering them with:
send_data(@library_item.content,:disposition=>“inline”,:type=>@library_item.content_type)
This works fine but I would like it in a separate browser window as
the users tend to close the window after viewing the pdf and then the
app has gone!

I have the same problem when linking to stored urls with:
redirect_to(@library_item.url)

Cheers
George

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs