Items/:id - no id? use default index method

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

Why not just defined a rule directly above it without :id? That’s what I
do
and it works fine…

Ian L. wrote:

Why not just defined a rule directly above it without :id? That’s what I
do
and it works fine…

Yup, but that shouldn’t be necessary.

Joe