app/controllers/identity/members/omniauth_callbacks_controller.rb
def github
    @member = Identity::Member.from_omniauth(request.env['omniauth.auth'])
    if @member.persisted?
      sign_in_and_redirect @member, event: :authentication
      set_flash_message(:notice, :success, kind: 'GitHub') if is_navigational_format?
    else
      session['devise.github_data'] = request.env['omniauth.auth']
      render 'members/registrations/new', locals: { resource: @member }
    end
  end
# You should also create an action method in this controller like this:
# def twitter
# end
You should also create an action method in this controller like this:
def twitter
end
You should also create an action method in this controller like this : def twitter end
def github
    @member = Identity::Member.from_omniauth(request.env['omniauth.auth'])
    if @member.persisted?
      sign_in_and_redirect @member, event: :authentication
      set_flash_message(:notice, :success, kind: 'GitHub') if is_navigational_format?
    else
      session['devise.github_data'] = request.env['omniauth.auth']
      render 'members/registrations/new', locals: { resource: @member }
    end
  end
def github @member = Identity :: Member . from_omniauth ( request . env [ 'omniauth.auth' ] ) if @member . persisted? sign_in_and_redirect @member , event : :authentication set_flash_message ( :notice , :success , kind : 'GitHub' ) if is_navigational_format? else session [ 'devise.github_data' ] = request . env [ 'omniauth.auth' ] render 'members/registrations/new' , locals : { resource : @member } end end
You should also create an action method in this controller like this:
def twitter
end
You should also create an action method in this controller like this : def twitter end