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