Dear rekan2,

Saya punya model yang resource-nya nested dan tidak nested. Agar jelas, ini
routes.rb saya:

  map.resources :speeches, :collection => {
    :upload_file => :get
  }

  map.resources :bundles do |bundles|
    bundles.resources :speeches
  end

Nah, bagaimana membedakan hal ini di SpeechController? Misalnya dalam
menangani index action untuk path yang berbeda (katakan /speeches/ dengan
/bundles/1/speeches/ ). Mohon pencerahannya.

Thanks,

Dida

Trying to follow the Rails' REST strictness in its new version (2.x)


[Non-text portions of this message have been removed]

Reply via email to