[Rails-core] Why does it route to show when excepting new?

2012-05-30 Thread Panayotis Matsinopoulos
HI, I have the following in my routes: resources :photos, :except = [:new, :edit] When I get /photos/new instead of getting a no route error, it routes to show and recognizes new as id. Is that normal? Panayotis -- You received this message because you are subscribed to the Google Groups

Re: [Rails-core] Why does it route to show when excepting new?

2012-05-30 Thread Ryan Bigg
This is not a core ruby on rails question. This would be more suited for the Rubyonrails-talk mailing list. I will still answer it though. The reason for this is due to how it matches the route for the show action. The route is like this: /posts/:id.:format This means anything following