to make a route without parameters don't use :member.
as ryan says it depends on what you want to do.
it could be :
with a "new" parameter
map.resources :products, :new => { :my_method => :get}
you will call it new_my_method_product_path
or
with a "collection" parameter
map.resources :products, :collection => { :my_method => :get}
you will call it my_method_products_path
I have a related question. I started off with:
map.resources :listings
map.resources :categories
Then I wanted to display listings that belong to a certain category at
"/listings/category", so I added the following to my routes:
map.resources :listings,
:requirements => { :id => /[0-9]/}
map.abc 'listings/:id', :controller => 'listings', :action =>
'show_constrained'
map.abc 'listings/:id.:format', :controller => 'listings', :action
=> 'show_constrained'
This is successful in routing requests to the right actions, but it
gives me only one helper method for the named route 'abc', which then
becomes a problem for me. Am I going about this the wrong way?