rails/rails — Issue #3372: route problem with singular and plural version of a route.
Author: luismadrigal
Created: 2011-10-19 23:23:53+00:00
State: open

Say I create a route like this

match '/holiday' => 'pages#holiday', :as => 'holiday'

and I create everything necessary to display the page, action in controller, page to be displayed, etc. When I visit the URL everything works!

Then I create a new route the plural version of the previous one.

match '/holidays' => 'pages#holidays', :as => 'holidays'

then I add the page, action to the controller, etc. Everything I need to display the page. When I visit the URL to view the page, I get a page not found 404 error.

I restarted the server but the problem persisted. If I launched a different browser it worked. I basically had to clear the cache for this change to take effect. I don't know if this is a bug or not. I am just reporting this weird issue.

I am running OS X 16.8, Firefox 7.0.1. I had multiple tabs open pointing to localhost not all of them pointing the new pages.