Displaying 1 result from an estimated 1 matches for "show_redirect".
Did you mean:
show&redirect
2006 Feb 08
1
routing: requiring requirements for non-existent params?
With this route:
map.connect ''items/:subject/:id'',
:controller=>''items'', :action=>''show_redirect'',
:requirements => {:subject => /.+/, :id => /\d+/}
Is it possible to have it match these URLs:
items/biology/123
items/chemistry/234
items/math/456
But not these:
items/new
items/list
...
The problem is that :requirements only applies if that
param exists. I''d like...