Adinda Praditya
2008-Aug-28 09:01 UTC
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---