How to handle nested and not nested resource in an action's controller?

Hi list,

I don’t know whether the subject is understandable / what i really mean. I have a model which resources are nested and non-nested (CMIIW). Anyway, my routes.rb should explain:

map.resources :speeches, :collection => {

:upload_file => :get


map.resources :bundles do |bundles|

bundles.resources :speeches


How to handle an action in SpeechesController, let’s say, index, for a different path, /speeches/ and /bundles/1/speeches/ ? Any reference to understand this area?