Displaying 1 result from an estimated 1 matches for "speechescontrol".
2008 Aug 28
0
How to handle nested and not nested resource in an action's controller?
...eally 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk...