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

  • Home
  • SEARCH
  • 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 6691509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:45:36+00:00 2026-05-26T05:45:36+00:00

routes.rb => devise_for :users resources :posts match posts/:id/categ => posts#categ match posts/:id/tag_posts => posts#tag_posts

  • 0

routes.rb =>

  devise_for :users

  resources :posts
  match "posts/:id/categ" => "posts#categ"
  match "posts/:id/tag_posts" => "posts#tag_posts"
  match "posts/searcharchive" => "posts#searcharchive"
  #post "posts/searcharchive"

  resources :categories
  resources :comments
  resources :countpages

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 /users/sign_out(.:format)      {:action=>"destroy", :controller=>"devise/sessions"}
           user_password POST   /users/password(.:format)      {:action=>"create", :controller=>"devise/passwords"}
       new_user_password GET    /users/password/new(.:format)  {:action=>"new", :controller=>"devise/passwords"}
      edit_user_password GET    /users/password/edit(.:format) {:action=>"edit", :controller=>"devise/passwords"}
                         PUT    /users/password(.:format)      {:action=>"update", :controller=>"devise/passwords"}
cancel_user_registration GET    /users/cancel(.:format)        {:action=>"cancel", :controller=>"devise/registrations"}
       user_registration POST   /users(.:format)               {:action=>"create", :controller=>"devise/registrations"}
   new_user_registration GET    /users/sign_up(.:format)       {:action=>"new", :controller=>"devise/registrations"}
  edit_user_registration GET    /users/edit(.:format)          {:action=>"edit", :controller=>"devise/registrations"}
                         PUT    /users(.:format)               {:action=>"update", :controller=>"devise/registrations"}
                         DELETE /users(.:format)               {:action=>"destroy", :controller=>"devise/registrations"}
                   posts GET    /posts(.:format)               {:action=>"index", :controller=>"posts"}
                         POST   /posts(.:format)               {:action=>"create", :controller=>"posts"}
                new_post GET    /posts/new(.:format)           {:action=>"new", :controller=>"posts"}
               edit_post GET    /posts/:id/edit(.:format)      {:action=>"edit", :controller=>"posts"}
                    post GET    /posts/:id(.:format)           {:action=>"show", :controller=>"posts"}
                         PUT    /posts/:id(.:format)           {:action=>"update", :controller=>"posts"}
                         DELETE /posts/:id(.:format)           {:action=>"destroy", :controller=>"posts"}
                                /posts/:id/categ(.:format)     {:controller=>"posts", :action=>"categ"}
                                /posts/:id/tag_posts(.:format) {:controller=>"posts", :action=>"tag_posts"}
     posts_searcharchive        /posts/searcharchive(.:format) {:controller=>"posts", :action=>"searcharchive"}
              categories GET    /categories(.:format)          {:action=>"index", :controller=>"categories"}
                         POST   /categories(.:format)          {:action=>"create", :controller=>"categories"}
            new_category GET    /categories/new(.:format)      {:action=>"new", :controller=>"categories"}
           edit_category GET    /categories/:id/edit(.:format) {:action=>"edit", :controller=>"categories"}
                category GET    /categories/:id(.:format)      {:action=>"show", :controller=>"categories"}
                         PUT    /categories/:id(.:format)      {:action=>"update", :controller=>"categories"}
                         DELETE /categories/:id(.:format)      {:action=>"destroy", :controller=>"categories"}
                comments GET    /comments(.:format)            {:action=>"index", :controller=>"comments"}
                         POST   /comments(.:format)            {:action=>"create", :controller=>"comments"}
             new_comment GET    /comments/new(.:format)        {:action=>"new", :controller=>"comments"}
            edit_comment GET    /comments/:id/edit(.:format)   {:action=>"edit", :controller=>"comments"}
                 comment GET    /comments/:id(.:format)        {:action=>"show", :controller=>"comments"}
                         PUT    /comments/:id(.:format)        {:action=>"update", :controller=>"comments"}
                         DELETE /comments/:id(.:format)        {:action=>"destroy", :controller=>"comments"}
              countpages GET    /countpages(.:format)          {:action=>"index", :controller=>"countpages"}
                         POST   /countpages(.:format)          {:action=>"create", :controller=>"countpages"}
           new_countpage GET    /countpages/new(.:format)      {:action=>"new", :controller=>"countpages"}
          edit_countpage GET    /countpages/:id/edit(.:format) {:action=>"edit", :controller=>"countpages"}
               countpage GET    /countpages/:id(.:format)      {:action=>"show", :controller=>"countpages"}
                         PUT    /countpages/:id(.:format)      {:action=>"update", :controller=>"countpages"}
                         DELETE /countpages/:id(.:format)      {:action=>"destroy", :controller=>"countpages"}
                    root        /                              {:controller=>"posts", :action=>"index"}

links =>

            <% if user_signed_in? %>
                <%= link_to('Logout', destroy_user_session_path, :method => 'delete') %>                
                <%= link_to 'Add Post', :controller=>'/posts', :action=>'new' %>
                <%= link_to 'Add Category', :controller=>'/categories', :action=>'new' %>
                <%= link_to 'Display ategories', :controller=>'/categories', :action=>'index' %>
            <% else %>
                <%= link_to('Login', new_user_session_path)  %>
            <% end %>

http://0.0.0.0:3000/users/sign_out =>

Error =>

Routing Error

No route matches [GET] "/users/sign_out"

What should i do ?

  • 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-26T05:45:37+00:00Added an answer on May 26, 2026 at 5:45 am

    You are calling the route using GET while the route requires DELETE, according to its definition.

    destroy_user_session DELETE /users/sign_out(.:format)      {:action=>"destroy", :controller=>"devise/sessions"}
    

    The link correctly uses DELETE

    <%= link_to('Logout', destroy_user_session_path, :method => 'delete') %>
    

    Did you try to visit the URL directly in your browser? In this case, it won’t work. You need to click on a link with the DELETE method.

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

Sidebar

Related Questions

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
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 root :to => posts#index devise_for :users, :controllers => {
My routes devise_for :users devise_for :admin_users, ActiveAdmin::Devise.config #I have also tried removing this for
Here is my routes files: Tubalr::Application.routes.draw do devise_for :users root :to => application#index get
According to rake routes, there's the same path for getting an index of objects
In my routes.rb I have this: map.namespace :admin do |admin| admin.resources :galleries do |galleries|
I have namespace in my routes.rb namespace :businesses do resources :registration end My controller
I'm trying to make a two-step confirmation like heroku using Devise. My routes: devise_for
destroy_user_session doesn't appear in my routes although routes.rb is configured # 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.