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

  • Home
  • SEARCH
  • 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 6731647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:33:14+00:00 2026-05-26T10:33:14+00:00

I am using Rails 3 and devise and am trying to make it so

  • 0

I am using Rails 3 and devise and am trying to make it so that when a person comes to my web app, they are taken directly to the user registration sign_up link instead of the sign in link.

I’m pretty sure that I’m having this problem because my routes are configured like:

root :to => "babies#new" 

Accessing the baby model requires a user to be logged in. To get around this I’ve tried changing this to:

root :to => “users#sign_up”

It doesn’t seem to work? I get an error saying that I have an:

uninitialized constant UsersController

Can anyone suggest what I’m doing wrong?

Thanks in advance!

  • 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-26T10:33:14+00:00Added an answer on May 26, 2026 at 10:33 am

    One of the solutions is to create separate controller say main and an action in it sign_up_redirect. Then configure your routes file like this:

    root :to => "main#sign_up_redirect"
    

    and write in that action next:

    redirect_to new_user_registration_path
    

    * path to registration can be different to you

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

Sidebar

Related Questions

I'm trying to layout a Rails app using Devise for authentication. I'd like to
I have a Rails 3 App using devise. I want to create a User/Profile
I am using Rails 3 and Devise to create an app where users arrive
I'm trying to get some basic authentication/authorization with devise/cancan with Rails. Rather than using
I'm using Rails 3 with Devise for user auth. Let's say I have a
I am using Devise in Rails 3, and have a User model in rails
I'm using Cancan, Devise, Rails 3 for my ordering application. Each user has many
Iam using Rails 3.0 and Devise. I am trying to figure out the best
I'm using devise & devise_invitable in a rails 3 project, and I'm trying to
I am trying to build a rails API for an iphone app. Devise works

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.