Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6786221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:13:10+00:00 2026-05-26T17:13:10+00:00

Here is my routes files: Tubalr::Application.routes.draw do devise_for :users root :to => application#index get

  • 0

Here is my routes files:

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

The routes /history and the default /users/edit route for devise do not log the user out.

I’m not sure what other information to give, if theres something that would help debugging my problem, please let me know and I’ll update the question.

The entire projects code can be found here: https://github.com/cjstewart88/Tubalr/tree/user_favorites

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:13:11+00:00Added an answer on May 26, 2026 at 5:13 pm

    After digging around I finally ran into this:

    https://github.com/plataformatec/devise/issues/913

    It appears that the csrf token needs to be passed along with AJAX request, which my app is doing a good bit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that routes all requests through index.php . Here's my setup:
In my routes.rb i have the following: get 'home/index' root :to => 'home#index' If
I'm trying to test the routes on my rails 2.3.4 application. There are several
Here is my actual error: No route matches [GET] /members/sign_out Since most people will
This is in my routes.rb file: resources :orders do member do get 'confirm' get
Here's the situation: ASP.NET MVC 3 application using Razor as the view engine. Works
I have a simple Express server that is serving up some static files. Here
I have routes defined for each module in my application, not heaps perhaps 10
so here's a quick question. Basically I'm making an express application that connects to
I have huge routes.rb file and I want to split into multiple manageable files.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.