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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:17:42+00:00 2026-06-09T18:17:42+00:00

I am trying to create the user registration views and model on my website

  • 0

I am trying to create the user registration views and model on my website but I am having a small issue :

I am using devise and omniauth to get the facebook connect features working and it works,
But I want my facebook users when they sign in the first time to create their password,
That is also working, I redirect them to the filled sign up form and they only have to enter their password. But I want them to go to a second “sign_up form” named /views/registrations/new_facebook.html.erb where they can only enter their password and I will also add some other information,

I created the correct view and tested it but I have no idea how to create the correct routes to bypass Devise default

match '/facebook' => 'registrations#new', :as => 'new_facebook_user_registration'

I believe the issue is with match because that’s what’s not recognised,

If anyone can help me that would be great thanks,

I added my controller code for omniauth :

class OmniauthCallbacksController < Devise::OmniauthCallbacksController
def all
user = User.from_omniauth(request.env["omniauth.auth"])
if user.persisted?
      flash[:success] = "Welcome back"
          sign_in_and_redirect user
else
  session["devise.user_attributes"] = user.attributes
  redirect_to new_facebook_user_registration_url
end
end
alias_method :facebook, :all

end

How can I make the redirect_to new_facebook_user_registration_url actually work ?

  • 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-09T18:17:44+00:00Added an answer on June 9, 2026 at 6:17 pm
     devise_scope :user do 
     match "registrations/new_facebook" => "registrations#new_facebook" 
     end
    

    That’s the solution I copied in the registrations controller the new method and named it new_facebook and now everything is working as expected !

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

Sidebar

Related Questions

I am trying to create a user registration page using MVC 3, so that
I'm trying to create a User Registration page in ASP.NET and wondering what is
I'm trying to write a registration using devise and active merchant. The form is
I am trying to design a user registration form using code igniter 2.1.0. I
i'm trying to create a registration system using jsp, beans and servlets. Registration process
I'm trying to create a pretty standard user creation form for a website I'm
I'm trying to create a registration form with Rails. It's working, but it doesn't
I am trying to use Django's generic views to make a user registration page.
Rails 2.3.9 Devise 1.0.8 I'm trying to restrict registrations for a Devise User model
I am trying to create simple user registration form. I have an index.html file

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.