Restful routes question

Hi all,

This is something I puzzle for quite a while. I need just one more
controller method just like index, that doesn't need another parameter
when used with redirect_to (not like show). For that I define in

map.resources :orders, :member => { :confirm => :get }

In my controller I can do then

redirect_to confirm_order_path(some_id), but I actually want

redirect_to confirm_order_path

Is there an easy way to do this?

Thanks in advance and Merry Xmas

What you're after is :collection, not :member.

Ryan Bigg wrote:

What you're after is :collection, not :member.

Ryan Bigg

Thanks a lot Ryan, that was exactly what I needed.

Have a nice Xmas day