I have this route:
map.item ‘items/:id’, :controller=>‘items’, :action=>‘show’,
:requirements => {:id => /\d+/}
With this route the URL ‘items’ without an id still gets routed to
items#show. Isn’t requirements (or just :id=>/\d+/, which I’ve also
tried) supposed to prevent that? I want plain ‘items’ requests without
an ID to use the default index action, which it does if this route isn’t
defined.
Joe