# Linking to url in new browser window

**URL:** <https://www.ruby-forum.com/t/linking-to-url-in-new-browser-window/112781>\
**Category:** Rails\
**Created:** [August 23, 2007, 6:56am UTC](https://www.ruby-forum.com/t/linking-to-url-in-new-browser-window/112781 "2007-08-23T06:56:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![giorgio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/cab0a1/32.png) [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Post date:** [August 23, 2007, 6:56am UTC](https://www.ruby-forum.com/t/linking-to-url-in-new-browser-window/112781/1 "2007-08-23T06:56:51Z")

</div>

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
