ReleaseApp::Application.routes.draw do
  resources :applications do
    collection do
      get 'archived', to: 'applications#archived'
    end

    member do
      put :update_notes
    end

    member do
      get :deploy
    end

    resources :deployments
  end

  resources :deployments
  resources :releases

  get '/activity', to: 'deployments#recent', as: :activity

  root :to => redirect("/applications", :status => 302)
end

ReleaseApp::Application.routes.draw do
  resources :applications do
    collection do
      get 'archived', to: 'applications#archived'
    end

    member do
      patch :update_notes
    end

    member do
      get :deploy
    end

    resources :deployments
  end

  resources :deployments
  resources :releases

  get '/activity', to: 'deployments#recent', as: :activity

  root :to => redirect("/applications", :status => 302)
end

Change PUT to PATCH for update_notes method
Change PUT to PATCH for update_notes method

Rails 4 changed the default HTTP verb from PUT to PATCH for updates,
which broke the note updating functionality in this app.
