title: Fast user switching with Devise and ActiveAdmin
body: <p>I followed this article to create fast user switching in Devise:</p>
  
  <p><a href="http://pivotallabs.com/users/mbarinek/blog/articles/1387-fast-user-switching-with-devise" rel="nofollow">http://pivotallabs.com/users/mbarinek/blog/articles/1387-fast-user-switching-with-devise</a></p>
  
  <p>What I don't understand is that in the cucumber file, it says </p>
  
  <pre><code>"And I follow the "Sign in as" link for user: "bob"". 
  </code></pre>
  
  <p>But there is no sign_in_as_path when I run rake routes. </p>
  
  <p>I'm using activeadmin, and when I try to generate the Admin/users view with the addiitional "sign in as" field:</p>
  
  <pre><code>  column "Sign In As" do |user|
        link_to "Sign in As", :controller =&gt; "signinas", :action =&gt; "create"
    end
  </code></pre>
  
  <p>and this in routes:</p>
  
  <pre><code>  match "/admin/signinas/create"   =&gt; "SignInAs#create"    
  </code></pre>
  
  <p>It gives me this:</p>
  
  <pre><code>ActionController::RoutingError (uninitialized constant SignInAsController::SignInAs):
    app/controllers/sign_in_as_controller.rb:2:in `&lt;class:SignInAsController&gt;'
    app/controllers/sign_in_as_controller.rb:1:in `&lt;top (required)&gt;'
  </code></pre>
  
  <p>I don't know how to trigger the create action in the SignInAsController, specified in the article, from admin/users.rb, which contains this:</p>
  
  <pre><code>ActiveAdmin.register User do
    index do
      column :email
      column :name
            column "Sign In As" do |user|
        link_to "Sign in As", :controller =&gt; "signinas", :action =&gt; "create"
    end
    end
  end
  </code></pre>
  
  <p>thanks for response</p>