私はUsers::OmniauthCallbacksController
の中にあり、redirect_to after_sign_in_url_for(@user)
を呼び出そうとしていますが、users/
がコントローラに追加されています。これをどうやって止めるのですか?スコープ付きコントローラのafter_sign_in_url_for(リソース)
いくつかのデバッグ:
>> after_sign_in_path_for(@user)
=> {:controller=>"expert_questions", :action=>"index"}
>> url_for(after_sign_in_path_for(@user))
!! #<ActionController::UrlGenerationError: No route matches {:action=>"index", :controller=>"users/expert_questions"}>