# Map.connect to new window?

**URL:** <https://www.ruby-forum.com/t/map-connect-to-new-window/103317>\
**Category:** Rails\
**Created:** [May 4, 2007, 4:31am UTC](https://www.ruby-forum.com/t/map-connect-to-new-window/103317 "2007-05-04T04:31:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffpritchard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/43a26b/32.png) [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Post date:** [May 4, 2007, 4:31am UTC](https://www.ruby-forum.com/t/map-connect-to-new-window/103317/1 "2007-05-04T04:31:38Z")

</div>

Is there anything you can add to a map.connect in routes.rb that will  
cause the browser to open the requested controller/action in a new  
window instead of the current one?

thanks,  
jp

P.s. yes, I know there are other ways to do this with target=\_blank, rjs  
page.open, etc. I’m wondering if there is a way to do it directly in  
the routing.

---

<div class="post-metadata">

**Author:** ![jeffpritchard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/43a26b/32.png) [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Post date:** [May 4, 2007, 10:43am UTC](https://www.ruby-forum.com/t/map-connect-to-new-window/103317/2 "2007-05-04T10:43:56Z")

</div>

On 5/3/07, Jeff P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there anything you can add to a map.connect in routes.rb that will  
> cause the browser to open the requested controller/action in a new  
> window instead of the current one?

Nope.

–  
Rick O.  
[http://lighthouseapp.com](http://lighthouseapp.com)  
[http://weblog.techno-weenie.net](http://weblog.techno-weenie.net)  
[http://mephistoblog.com](http://mephistoblog.com)
