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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:18:31+00:00 2026-05-27T14:18:31+00:00

I am trying to allow the user to reset their password using Devise’s recoverable

  • 0

I am trying to allow the user to reset their password using Devise’s recoverable option. This doesn’t seem to be working for me.

I extend the Devise::PasswordsController so that it doesn’t use the application layout.

class PasswordsController < Devise::PasswordsController
  layout false
end

In my routes, I ensure that my passwords controller is used.

devise_for :users, :controllers => {:passwords => "passwords"}
resources :passwords

Here’s my User model so you see that I have the :recoverable option.

devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

On my login page, I have (I’m using haml):

...
= link_to "Forgot your password?", new_password_path(resource_name)

This link correctly takes me to http://localhost:3000/users/password/new.Here is the form that is found there:

%h2 Forgot your password?
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { :method => :post }) do |f|
  = devise_error_messages!
  %div
    = f.label :email
    %br/
    = f.email_field :email
  %div= f.submit "Send me reset password instructions"

However, this seems to try to take me to the wrong place when I click the button. It’s failing every time, and not showing any emails in the server log.

It’s redirecting me to: http://localhost:3000/passwords/user and telling me:

Routing Error

No route matches "/passwords/user"

Any idea how I can proceed? I thought using the recoverable option was meant to be easier than this. What am I doing wrong?

UPDATE
For the record, I just removed everything I did, and tried using the standard devise controllers, and I modified my application layout so that it wouldn’t cause an error, and everything is working. So I just need a good way to remove the application layout from the password reset page.

  • 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-27T14:18:32+00:00Added an answer on May 27, 2026 at 2:18 pm

    It seems to be that when you call password_path(resource_name) in your view code, the routing system thinks you mean /passwords/resource_name, rather than the controller namespaced under users by Devise. This is because you have the line

    resources :passwords
    

    directly under your devise_for call in your routes file. Now I’m not sure if that line is there for a reason, but does your problem go away when you comment it out?

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

Sidebar

Related Questions

I am using wordpress as a CMS and trying to allow user fields to
So I'm trying to add some ability to my project to allow user-defined properties
I trying to pomp showPermissionDialog for allow the user to post something in a
I am trying to set up a page that will allow the user to
I'm trying to modifty the Flex Tree control to allow a user to select
I'm trying to configure Apache to allow read only access and ask for user
I'm trying to allow the user to take 16x9 aspect ratio images to look
I'm trying to allow the user to edit a contenteditable div, but am finding
I am trying to allow the user to create a shortlist, however I add
I am trying to allow the user to upload as many images as they

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.