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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:46:08+00:00 2026-06-14T15:46:08+00:00

I am getting this error whenever I go to /users/edit when signed in: No

  • 0

I am getting this error whenever I go to /users/edit when signed in:

No route matches {:action=>"show", :controller=>"users"}

Why is the users/edit trying to look for the show action in the users controller?

routes.rb

  devise_for :users do
    get 'users', :to => 'users#show', :as => :user_root # Rails 3
  end

  resources :users, :only => [:index, :show]

  authenticated :user do
    root :to => 'home#index'
  end

  root :to => 'home#index'

rake routes:

 user_root                GET    /users(.:format)               users#show
 new_user_session         GET    /users/sign_in(.:format)       devise/sessions#new
 user_session             POST   /users/sign_in(.:format)       devise/sessions#create
 destroy_user_session     DELETE /users/sign_out(.:format)      devise/sessions#destroy
 user_password            POST   /users/password(.:format)      devise/passwords#create
 new_user_password        GET    /users/password/new(.:format)  devise/passwords#new
 edit_user_password       GET    /users/password/edit(.:format) devise/passwords#edit
                          PUT    /users/password(.:forma        devise/passwords#update
 cancel_user_registration GET    /users/cancel(.:format)        devise/registrations#cancel
 user_registration        POST   /users(.:format)               devise/registrations#create
 new_user_registration    GET    /users/sign_up(.:format)       devise/registrations#new
 edit_user_registration   GET    /users/edit(.:format)          devise/registrations#edit
                          PUT    /users(.:format)               devise/registrations#update
                          DELETE /users(.:format)               devise/registrations#destroy
 users                    GET    /users(.:format)               users#index
 user                     GET    /users/:id(.:format)           users#show
 root                     /                                     home#index
 root                     /                                     home#index
  • 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-06-14T15:46:09+00:00Added an answer on June 14, 2026 at 3:46 pm

    Weird!

    So I stepped through all my last changes and found out the issue was with this line of code located in views/layouts/application.html.erb:

    <%= link_to current_user.email, user_path  %>
    

    For some reason when their is a link to user_path in the layout file, the routing in the site gets all messed up.

    To fix it I just changed user_path to current_user so my new link looks like this:

    <%= link_to current_user.email, current_user  %>
    

    What is really weird is that when you use a link to user_path anywhere but the layout/application.html.erb file the routing works fine.

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

Sidebar

Related Questions

I'm trying to run a PHP script, but I keep getting this error whenever
I keep getting this error whenever I call gethostbyname() in my C code. ==7983==
I'm getting this error whenever I attempt to declare a class: Parse error: syntax
I´m getting this error while trying to commit to a svn repository: svn: MKACTIVITY
Keep getting this error after inserting a subdatasheet into a query and trying to
getting the error {error:{message:(#100) Can only call this method on valid test users for
I am getting the following error whenever I try to switch views like this:
I am getting this error now whenever I try to build. I just installed
I am getting this error when ever deploying my jsf application java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config at
Getting this error: 2009-09-03 12:44:02.307 xcodebuild[307:10b] warning: compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' is based on missing compiler

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.