after_sign_in_url_for(resource) from Scoped controller
<p>I'm inside of <code>Users::OmniauthCallbacksController</code> and trying to call <code>redirect_to after_sign_in_url_for(@user)</code> but <code>users/</code> is getting appended to my controller. How do I stop this from happening?</p>

<p>Some debugging:</p>

<pre><code>&gt;&gt; after_sign_in_path_for(@user)
=&gt; {:controller=&gt;"expert_questions", :action=&gt;"index"}
&gt;&gt; url_for(after_sign_in_path_for(@user))
!! #&lt;ActionController::UrlGenerationError: No route matches {:action=&gt;"index", :controller=&gt;"users/expert_questions"}&gt;
</code></pre>