RESTful resources and custom url

I have many REST routes in my application, including

map.resources :users

This works well, and my url ends up /users/2 for a specific user.
However, how do I use resources when I want my specific user url
( user_url(2) ) to be:


Do I need to create all the routes manually? I didn't see an option
in map.resources that would let me do that.

This list is for development of Rails itself, not for how to use Rails. Try the rubyonrails-talk list for support.

That said, you want to define a to_param method for your model that outputs the custom format id. I've done that myself and it works fine with the standard route helper methods.