RESTful routes and resulting urls

with RESTful routes if I place the following in routes.rb:

map.resources :messages

I get the following urls:

/messages
/messages/1
/messages/1;edit
etc…

and they all use the Messages controller

Is it possible to still use the same controller but to change the url
much like the old routes:

map.connect ‘/blah/:action/:id’, :controller => ‘messages’

This allows me to have an abitrary url for any controller

-felix

It looks to me like your trying to mingle the old style urls with the
new RESTful urls. I don’t see the point. If you just want the old
style, use those rather than RESTful style.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs