Following this tutorial here.
I'm having an issue finding any information on what I am trying to accomplish.
I currently have my rails app set up with custom user authentication. Also users have a role string within the database which is used to determine what they see and can do within application.
ROLES = %w[non-profit company person]
def role_symbols
[role.to_sym]
end
Within the sign up form regular the user is able to enter , Name, email address, username, and password. And also have to select their user role.
Signup.html.erb
<h3>Choose Account Type </h3>
<%= f.input :role, :collection => User::ROLES.map { |s| [s.humanize, s] }, required: true, label: false, input_html: { class: 'input-md' } %>
My goal is to have my sign up form with twitter and facebook omniauth. When they click create account with twitter or facebook I would like the user to be able to select their role. The current omniauth configuration I'm a little confused on how to add a custom selection. Is there anyway to make sure a user selects a role before their account is created by linking twitter or facebook accounts.
Any help would be amazing thank you.