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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:40:02+00:00 2026-05-23T21:40:02+00:00

Using devise, how do i make my Sign Up as my landing/welcome page and

  • 0

Using devise, how do i make my Sign Up as my landing/welcome page and then after sign up they go inside the site to the Profile/signed in area?

I am trying to figure out how to make it like where Facebook their is two sides of the website; the Outside (sign up, about,contact,etc) and The Inside (Profile,sign out,etc) for Users only after sign up or sign in.

Thank you.

P.S. I am new at Ruby on Rails and creating applications but i did do the authentication system with the Rails 3 Tutorial, i understand most things to start using Devise, i jst dont know where to start with this situation.

I was going to use 2 application layouts, 1 before sign up which is layouts/welcome.html.erb with PagesController (about,terms,etc) and the other for signed in users which will be layouts/application.html.erb with ApplicationController (profile,news,add,etc), is this the best steps?

  • 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-23T21:40:03+00:00Added an answer on May 23, 2026 at 9:40 pm

    This my new and updated way using Rails 3.1.0 and Devise 1.5.0:

    routes.rb

    root :to => "pages#redirect_to_sign_up"
    
    devise_for :users do
      get "welcome" => "devise/registrations#new", :as => :new_user_registration
      get "account_settings" => "devise/registrations#edit"
      get "sign_in" => "devise/sessions#new"
      get "sign_out" => "devise/sessions#destroy"
      get "new_password", :to => "devise/passwords#new"
    end
    
    match 'home',      :to => "user_pages#home"
    
    namespace :user do
      root :to => "user_pages#home"
    end
    

    application_controller.rb

    class ApplicationController < ActionController::Base
      protect_from_forgery
    
      protected
    
      def after_sign_in_path_for(resource)
        stored_location_for(:user) || root_path
      end
    
      private
    
      def after_sign_out_path_for(resource)
        stored_location_for(:user) || root_path
      end
    end
    

    pages_controller.rb

    class PagesController < ApplicationController
      def redirect_to_sign_up
        if signed_in?.blank?
          redirect_to new_user_registration_path
        else
          redirect_to home_path
        end
      end
    end
    

    user_pages_controller.rb

    class UserPagesController < ApplicationController
      before_filter :authenticate_user!
    
      def home
      end
    
      def profile
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Devise gem and in the sign in page I expect
How do I make devise execute functions after sign up, sign in etc. I
I am using Devise gem and I want to change the redirect path after
I'm using force_ssl (Rails 3.1, specifically in the Devise config) to make sure that
I am using the devise gem to make authentication work in my app. Here's
if i am using the devise gem with rails, how do i make the
I'm trying to make a two-step confirmation like heroku using Devise. My routes: devise_for
I have started using devise for my rails app, however i need to make
I am using Rails 3 and devise and am trying to make it so
I am using devise and create login with Facebook using omniauth, but having problem

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.