This project is archived and is in readonly mode.
routing constraints not working properly with regex
-
Andrew White
- State changed from new to invalid
Because you specified a single character id with the regexp
-
Andrew White
To match http://localhost:3000/person/ME the routes would be:
R4963::Application.routes.draw do |map| resources :users match 'person/:id' => 'users#show', :constraints => { :id => /[A-Z]+/ } end