# Default route + URL

**URL:** <https://www.ruby-forum.com/t/default-route-url/173499>\
**Category:** Rails\
**Created:** [August 10, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/default-route-url/173499 "2009-08-10T16:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5f9b8f/32.png) [@jai](https://www.ruby-forum.com/u/jai)\
**Post date:** [August 10, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/default-route-url/173499/1 "2009-08-10T16:16:07Z")

</div>

Hi,

I am new to Ruby on Rails and I was wondering about this…

If the default route in routes.rb file is

map.connect ‘:controller/:action/:id’  
map.connect ‘:controller/:action/:id.:format’

Why is the edit URL when generated by using a helper in this format  
“/blog/2/edit” and not “/blog/edit/2”?

It seems that the URL should be /blog/edit/2 since it would mean that  
the action “edit” is invoked on the controller “blog” with a parameter  
2. Why is this other way around?

Thanks for your time.

JK
