Adding RESTful route to Rails app
        Posted  
        
            by macek
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by macek
        
        
        
        Published on 2010-04-14T04:48:27Z
        Indexed on 
            2010/04/14
            4:53 UTC
        
        
        Read the original article
        Hit count: 311
        
I'm reading these two pages
The Rails Guides page shows
map.resources :photos, :new => { :upload => :post }
And its corresponding URL
/photos/upload
This looks wonderful.
My routes.rb shows this
map.resources :users, :new => { :signup => :get, :register => :post }
When I do: [~/my_app]$ rake routes
I see the two new routes added
  signup_new_user GET    /users/new/signup(.:format)
register_new_user POST   /users/new/register(.:format)
Note the inclusion of /new! I don't want that. I just want /users/signup and /users/register (as described in the Rails Routing Guide).
Any help?
© Stack Overflow or respective owner