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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:31:03+00:00 2026-05-20T08:31:03+00:00

I am using devise plugin in my new Rails App. My issue is devise

  • 0

I am using devise plugin in my new Rails App. My issue is devise plugin has default roots for login and signup

/users/sign_in
/users/sign_up

I need to change this to

/login 
/signup

For this I used the following routing

 devise_for :users do
   get "login", :to => "devise/sessions#new"
   get "signup", :to => "devise/registrations#new"
 end

With this I need to specify ‘login_path’ and ‘signup_path’ everywhere in my views where new_user_session_path and new_user_registration_path comes

What I want is a configuration in routes which maps ‘/login’ and ‘/signup’ to new_user_session_path and new_user_registration_path.

I have seen a post which route /users/sign_in and /users/sign_up to /sign_in and /sign_up using the below shown routing.

  devise_for :user, :as => ''

I need some routing technique like this which routes /users/sign_in and /users/sign_up to /login and /signup.

Could anyone please help me with this.

UPDATE: I have changed my routes.rb file to

  devise_for :users,
         :controllers => { :sessions => 'devise/sessions'},
         :skip => [:sessions] do
       get '/login' => "devise/sessions#new", :as => :new_user_session
       post '/login' => 'devise/sessions#create', :as => :user_session
       get '/signout' => 'devise/sessions#destroy', :as => :destroy_user_session
       get '/signup' => 'devise/registrations#new', :as => :new_user_registration
  end

But still when I use link_to ‘new_user_registration’ in my views its not showing as ‘/signup’ in the browser

  • 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-20T08:31:04+00:00Added an answer on May 20, 2026 at 8:31 am

    Here are a little bit more options than you asked but it’s clear:

      devise_for :users,
                 :controllers => { :registrations => "users/registrations",
                                   :confirmations => "users/confirmations",
                                   :sessions => 'devise/sessions'},
                 :skip => [:sessions] do
        get '/signin'   => "devise/sessions#new",       :as => :new_user_session
        post '/signin'  => 'devise/sessions#create',    :as => :user_session
        get '/signout'  => 'devise/sessions#destroy',   :as => :destroy_user_session
        get "/signup"   => "users/registrations#new",   :as => :new_user_registration
      end
    

    Even more, with :registrations => "users/registrations" we can additionally customize redirects:

    class Users::RegistrationsController < Devise::RegistrationsController
      protected
    
      def after_sign_up_path_for(resource)
        welcome_path # it's not a home path
      end
    
      def after_update_path_for(resource)
        edit_user_registration_path
      end
    end
    

    Devise has a good wiki.

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

Sidebar

Related Questions

I'm using the devise authentication plugin under rails 3. At the moment, I have
I'm using the devise authentication plugin under rails 3. At the moment, I have
Using the current rails 2 I want users to be able to create an
I'm using Devise as authenticating solution in Rails and I have a cached fragment
rails 3 newbie, using Devise for auth... I want to create the following models:
I'm trying to get some basic authentication/authorization with devise/cancan with Rails. Rather than using
I have a Rails application for which I use devise to authenticate my users
I'm using OmniAuth + Devise to allow users to register using Facebook/Twitter/Gowalla/etc attached to
A number of Rails 2.3 apps are using Restful Authentication but that plugin seems
I am using rails to build a web app which provides each business 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.