# Map.connect will not create connect\_path and connect\_url?

**URL:** <https://www.ruby-forum.com/t/map-connect-will-not-create-connect-path-and-connect-url/190065>\
**Category:** Rails\
**Created:** [June 12, 2010, 1:11pm UTC](https://www.ruby-forum.com/t/map-connect-will-not-create-connect-path-and-connect-url/190065 "2010-06-12T13:11:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![winterheat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7993a0/32.png) [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Post date:** [June 12, 2010, 1:11pm UTC](https://www.ruby-forum.com/t/map-connect-will-not-create-connect-path-and-connect-url/190065/1 "2010-06-12T13:11:09Z")

</div>

In Ruby on Rails, routes.rb, if we create a “named route”

```
map.something ":a/:b", :controller => 'foobar'

```

it will also create “something\_path” and “something\_url” which are two  
methods usable in the controller and in the view. Does “map.connect”  
create something like that too? Otherwise, isn’t “map.connect” somewhat  
disadvantaged in this way? I checked that “connect\_path” and  
“connect\_url” both aren’t created automatically.

---

<div class="post-metadata">

**Author:** ![winterheat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7993a0/32.png) [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Post date:** [June 12, 2010, 1:47pm UTC](https://www.ruby-forum.com/t/map-connect-will-not-create-connect-path-and-connect-url/190065/2 "2010-06-12T13:47:53Z")

</div>

On Jun 12, 12:11 pm, Jian L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> In Ruby on Rails, routes.rb, if we create a “named route”
> 
> ```
> map.something ":a/:b", :controller => 'foobar'
> 
> ```
> 
> it will also create “something\_path” and “something\_url” which are two  
> methods usable in the controller and in the view. Does “map.connect”  
> create something like that too? Otherwise, isn’t “map.connect” somewhat  
> disadvantaged in this way? I checked that “connect\_path” and  
> “connect\_url” both aren’t created automatically.

map.connect predates named routes.

Fred
