title: will_paginate confusing urls with devise authenticated root routes
body: <p>I have the following in my routes.rb:</p>
  
  <pre><code>...
  authenticated :user do
      root to: 'game_shelves#index', as: :authenticated_root
  end
  unauthenticated do
      root to: 'editions#index'
  end
  ...
  resources :editions, :path =&gt; "games" do
      collection do
          get 'to_review'
          post 'review'
          get 'existing_work'
      end
      member do
          put 'split'
      end
      resources :expansions do
      end
  end
  ...
  </code></pre>
  
  <p>will_paginate is like this:</p>
  
  <pre><code>&lt;%= will_paginate @collection, renderer: BootstrapPagination::Rails %&gt;
  </code></pre>
  
  <p>And the result links are like this:</p>
  
  <blockquote>
    <p><a href="http://localhost:3000/?page=2" rel="nofollow">http://localhost:3000/?page=2</a></p>
  </blockquote>
  
  <p>If I make unauthenticated root be other thing than editions#index, the links are correct, like this:</p>
  
  <blockquote>
    <p><a href="http://localhost:3000/games?page=2" rel="nofollow">http://localhost:3000/games?page=2</a></p>
  </blockquote>
  
  <p>I've tried using this:</p>
  
  <pre><code>&lt;%= will_paginate @collection, :params =&gt; {:controller =&gt; '/editions', :action =&gt; 'index'}, renderer: BootstrapPagination::Rails %&gt;
  </code></pre>
  
  <p>But it does not force will_paginate to use the right route. And if I try this:</p>
  
  <pre><code>&lt;%= will_paginate @collection, :params =&gt; {:controller =&gt; editions_path }, renderer: BootstrapPagination::Rails %&gt;
  </code></pre>
  
  <p>Rails give me route errors:</p>
  
  <blockquote>
    <p>No route matches {:action=>"index", :controller=>"games", :page=>2}</p>
  </blockquote>