applictaion_controller.rbではリダイレクト処理したくない
理由は特にない。気分の問題。
omniauth_callbacks_controller.rbに書く
app/controllers/chichinpuipui/omniauth_callbacks_controller.rb
def google_oauth2
...
...
end
protected
#ログイン後のリダイレクト先
def after_sign_in_path_for(resource)
itaino_itaino_tondeke_path
end
google_oauth2メソッドより上にprotected書くとエラーになるので注意。