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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:15:05+00:00 2026-06-11T02:15:05+00:00

I use Rails 3 application with devise , simple form and haml gems. Also

  • 0

I use Rails 3 application with devise, simple form and haml gems. Also my application supports few locales. I created simple link on my home page:

%p
  = link_to "Change pass", edit_user_password_path

App shows this link for everyone (just to test it). But i founded that non log-in user can open this link. But when log-in user opens this link then system tells that:

You are already signed in. 

I can’t figure what i’m doing wrong.

My User model:

class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :token_authenticatable, :confirmable,
  # :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  # Setup accessible (or protected) attributes for your model
  attr_accessible :email, :password, :password_confirmation, :remember_me
  # attr_accessible :title, :body
end

My routes:

  scope ":locale", locale: /#{I18n.available_locales.join("|")}/ do
    devise_for :users, :skip => [:registrations]                                          

    root :to => 'pages#home'
  end

  match '*path', to: redirect("/#{I18n.default_locale}/%{path}"), constraints: lambda { |req| !req.path.starts_with? "/#{I18n.default_locale}/" }
  match '', to: redirect("/#{I18n.default_locale}")

Also i commented few lines in views/devise/shared/_links.haml

- if devise_mapping.registerable? && controller_name != 'registrations'
  / = link_to t(".sign_up_link"), new_registration_path(resource_name)
  / %br/

Because i don’t want to allow users to register and see the link.

  • 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-11T02:15:07+00:00Added an answer on June 11, 2026 at 2:15 am

    edit_user_password_path is used by the password_controller in Devise for when a user needs to reset their password. I think what you are looking for is the edit_user_registration_path . This will take the user to edit action of the registrations_controller where they can modify their email address and password. This is default Devise behavior.

    If you would like to provide something a little more custom, you can read a tutorial on the Devise Wiki on how to provide custom password change functionality.

    Also take note, that when a user follows edit_user_registration_path there is an option for them to cancel their account that you may want to remove from the view, or use the custom approach to avoid this unwanted functionality.

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

Sidebar

Related Questions

I encounter identical issues with some Ruby gems in Rails application. When I use:
I use Devise in my Rails 3.1 application to manage sessions. In Safari and
I use this link to put the login links on my application : https://github.com/plataformatec/devise/wiki/How-To:-Add-sign_in,-sign_out,-and-sign_up-links-to-your-layout-template
I'm developing Rails application and I have to use authentication. I installed devise gem
I have a Rails application for which I use devise to authenticate my users
I have a non-rails application that I want to use rails active-record migrations with.
My Rails application makes use of Time.zone so that each user can set their
In my Rails application I want to use the will_paginate gem to paginate on
I am trying to use rspec on my rails application I run spec path/to/spec/spec.rb
We are designing an application that will use Rails and Wordpress to interact with

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.