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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:12:32+00:00 2026-06-11T13:12:32+00:00

Using Rails 3.2.8, Devise 2.1.2, & Simpleform 2.0.2 I’m trying to redirect user upon

  • 0

Using Rails 3.2.8, Devise 2.1.2, & Simpleform 2.0.2

I’m trying to redirect user upon successful sign in & sign out using devise.

So do I need to modify the controller if so how (specifics)?
Or do I need to implement the redirect helper, if so where do I put the helper?

Thanks a ton.

  • 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-11T13:12:34+00:00Added an answer on June 11, 2026 at 1:12 pm

    You should be able to do this by adding following to your application_controller

    def after_sign_in_path_for(resource)
      some_path
    end
    
    def after_sign_out_path_for(resource)
      root_url
    end
    

    I think resource is a User class, so you can check for type and redirect them to appropriate path.

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

Sidebar

Related Questions

How to redirect to a specific page on successful sign up using rails devise
Using rails, devise, rspec & factorygirl: Trying to create some tests for my site.
I'm using devise & devise_invitable in a rails 3 project, and I'm trying to
I'm using Rails, iOS, and devise. I want to read a single user. The
I have a class User in Rails using Mongoid and Devise. I can't seem
I'm using rails 3 with devise. I have a User table with fields: email,
I'm using Rails 3 with Devise for user auth. Let's say I have a
I'm using rails 3.1 with Devise. When an account confirmation email goes out, it
I'm using Rails 3.0.9, Ruby 1.9.2, Devise 1.3.4 and has a need in Devise
I'm using devise with my rails 3 app. For some reason the sign in

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.