Вот мои файлы маршрутов:
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 "/users/sign_out" => "devise/sessions#destroy"
end
end
Маршруты /history
и маршрут по умолчанию /users/edit
для устройства не выходят из системы.
Я не уверен, какую другую информацию предоставить, если есть что-то, что поможет отладить мою проблему, пожалуйста, дайте мне знать, и я обновлю вопрос.
Весь код проекта можно найти здесь: https://github.com/cjstewart88/Tubalr/tree/user_favorites