Help with routes

I would like to serve different feeds eg: xml, csv etc. which will be
created on request and will be served from the controller named feeds.

the action names will be xml and csv.

how can i setup the routes that i show the proper feeds at:

currently the related items I have in my routes.rb are:

map.resources :feeds

map.connect ':controller/:action.:format'

any help in this regard is greatly appriciated.


map.resources :feeds, :collection => {:xml => :get, :csv => :get}

Worked like a charm. Thanks.

Bruno Grasselli wrote: