2011-11-05 24 views
0

這裏是我的路線文件:設計註銷用戶打出來某些航線後

Tubalr::Application.routes.draw do 
    devise_for :users 

    root :to => "application#index" 

    get "/player/:search_type/:search/:first_video" => "application#player" 

    get "/just/:artist_band.json" => "api#just" 
    get "/similar/:artist_band.json" => "api#similar" 
    get "/:username/favorites.json" => "api#userFavorites" 

    get "/just/:artist_band" => "application#index" 
    get "/similar/:artist_band" => "application#index" 

    get "/history" => "application#history" 

    get "/:username/favorites" => "favorites#init" 

    post "/check-favorites" => "favorites#check" 
    post "/favorites/add" => "favorites#add" 
    post "/favorites/remove" => "favorites#remove" 

    devise_scope :user do 
    get "https://stackoverflow.com/users/sign_out" => "devise/sessions#destroy" 
    end 
end 

的路由/history和色器件不註銷用戶默認/users/edit路線。

我不確定要提供哪些其他信息,如果有幫助調試我的問題的東西,請讓我知道,我會更新問題。

整個項目的代碼可以在這裏找到:https://github.com/cjstewart88/Tubalr/tree/user_favorites

回答