title: Problem with nested resources with Kaminari pagination gem
body: <p>Can't seem to get Kaminari to work properly with nested resources. Here is a description of my problem. Wondering if anybody was able to tackle this issue.</p>
  
  <p>My routes look like:</p>
  
  <pre><code>resources :artists do
    resources :paintings
  end
  </code></pre>
  
  <p>In my view, I have:</p>
  
  <pre><code>&lt;%= paginate @paintings, :params =&gt; { :controller =&gt; 'paintings', :action =&gt; 'index' } %&gt;
  </code></pre>
  
  <p>The initial / base url looks like this:</p>
  
  <pre><code>http://localhost/artists/foobar/paintings
  </code></pre>
  
  <p>But clicking on a kaminari paginate link, renders the url like this:</p>
  
  <pre><code>http://localhost/paintings?artist_id=foobar&amp;page=2
  </code></pre>
  
  <p>It's supposed to be:</p>
  
  <pre><code>http://localhost/artists/foobar/paintings?page=2
  </code></pre>