Twist::Application.routes.draw do

  root :to => "books#index"
  resources :books do
    member do
      post :receive
    end
    
    resources :chapters do
      resources :elements do
        resources :notes
      end

      resources :notes do
        resources :comments
      end
    end
    
    resources :notes
  end

  devise_for :users
end

Twist::Application.routes.draw do

  root :to => "books#index"
  resources :books do
    member do
      post :receive
    end
    
    resources :chapters do
      resources :elements do
        resources :notes
      end

      resources :notes do
        resources :comments
      end
    end
    
    resources :notes
  end

  devise_for :users
  
  get 'signed_out', :to => "users#signed_out"
end

Add route for signed out path
Add route for signed out path
