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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:18:44+00:00 2026-06-09T21:18:44+00:00

Upon login, I would like a user to be directed to example.com/me and not

  • 0

Upon login, I would like a user to be directed to

example.com/me

and not

example.com/users/$ID_NUMBER

I’ve added the following to my routes.rb

match ‘/me’, to: ‘users#show’

And the users_controller

@user = current_user
redirect_to me_url

However, I get redirection loops. I can call example.com/me without any problem, but I cannot go directly there during the login step.

  • 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-09T21:18:47+00:00Added an answer on June 9, 2026 at 9:18 pm

    You need to create the url helpers in your routes.rb

    match '/me' => 'users#show', :as => :me
    

    The :as => :me part is what creates the me_url and me_path helpers.

    Rails routing

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

Sidebar

Related Questions

I'd like to switch databases upon user login. I've created this login signal.. but
I would like to see a simple Login Application, not as simple as this
I want users to be redirected to the posts index action upon login. But
Upon user login I check their roles. If they have no roles I want
I'm using phpass when my users type in password upon signup and login. It's
I would like to be able to completely remove menu items upon startup of
In my users_controller I have two methods signup_process and login . I would like
I was following the tutorial here: http://net.tutsplus.com/tutorials/php/how-to-authenticate-your-users-with-facebook-connect/ But I can't get past the first
In my asp.net website I am creating a session upon user login and I
In my application, upon clicking login in the login page, I have to call

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.