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
end

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?

Thanks,

Dida

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs