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 6754715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:18:48+00:00 2026-05-26T13:18:48+00:00

My routes devise_for :users devise_for :admin_users, ActiveAdmin::Devise.config #I have also tried removing this for

  • 0

My routes

devise_for :users
devise_for :admin_users, ActiveAdmin::Devise.config #I have also tried removing this for any conflicts
resources :users

The sign out link. Routes to /users/sign_out just fine

<%= link_to "Logout", destroy_user_session_path, :method => :delete %>

Trying to sign out, gives me the error:

Couldn't find User with id=sign_out

If I then remove the resource :users, I get:

The action 'sign_out' could not be found for UsersController

What’s wrong? The exact same code worked with Rails 2.3.8 and the corresponding Devise version

Logging in etc. works fine.

My setup is:

  • Ruby 1.9.2
  • Rails 3.1.1.rc3
  • Devise 1.4.8
  • 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-26T13:18:49+00:00Added an answer on May 26, 2026 at 1:18 pm

    First of all, using the same path for UsersController and Devise isn’t a great idea. I would suggest using a path like ‘/accounts’ for Devise.

    But this probably isn’t the cause of your sign out problem, as devise_for :users comes before resources :users in routes.rb. What seems to be the cause is, unless there’a typo in the question, that there’s no comma after destroy_user_session_path. :method => :delete will be interpreted as a parameter to destroy_user_session_path unless there’s a comma.

    Also, make sure you’re including jquery and jquery_ujs in application.js, as these are required for :method => :delete to work.

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

Sidebar

Related Questions

I have the following routes in my 3.1.0.rc5 app # config/routes.rb devise_for :users resources
I have this in routes.rb: devise_for :users, :controllers => { :omniauth_callbacks => users/omniauth_callbacks }
I have this in routes.rb root :to => posts#index devise_for :users, :controllers => {
In my routes.rb I have this: map.namespace :admin do |admin| admin.resources :galleries do |galleries|
I have this application where I use Devise and, after login the user is
Here is my routes files: Tubalr::Application.routes.draw do devise_for :users root :to => application#index get
I am using devise for my user model and in the routes.rb I have
I'm trying to customize my routes in devise. I've tried to use devise_scope :user,
rake routes: new_user_session GET /users/sign_in(.:format) {:action=>new, :controller=>devise/sessions} user_session POST /users/sign_in(.:format) {:action=>create, :controller=>devise/sessions} destroy_user_session DELETE
On core website I use standard Devise configuration for user authentication. In routes.rb: devise_for

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.