title: Kaminari and extra params
body: <p>I've looked around and I can't find anything close to answer for this. I think it's a pretty unique edge case though so I'm not surprised.</p>
  
  <p>I have an index page where I'm showing all the leads, but I have 3 separate ways of showing it: unreviewed, reviewed, all. To accomplish this I use the current_page? helper, add: ?unreviewed=true to the url. </p>
  
  <p>This worked no problem by itself, when I added in kaminari for pagination the page params seems to mess this up and make it so the current_page? cant read the extra params.</p>
  
  <p>How can I fix this, or is there a better way to accomplish this goal?</p>
  
  <p>This is using Rails 4 and Kaminari 0.15.1</p>
  
  <p>Controller:</p>
  
  <pre><code>def index
      @leads = Lead.order(:id).page params[:page]
      @reviewed_leads = Lead.where(reviewed: true).order(:id).page params[:page]
      @unreviewed_leads = Lead.where(reviewed: nil).order(:id).page params[:page]
      current_page_no = Lead.page
  end
  </code></pre>
  
  <p>index.html.erb</p>
  
  <pre><code>         &lt;tr&gt;
                  &lt;td colspan="7" style="text-align: center;"&gt;
                      &lt;div class="pagination pagination-table"&gt;
  
                          &lt;% if current_page?(controller: 'leads', action: 'index', unreviewed: 'true') %&gt;
                          &lt;%= paginate @unreviewed_leads %&gt;
                          &lt;% elsif current_page?(controller: 'leads', action: 'index', reviewed: 'true') %&gt;
                          &lt;%= paginate @reviewed_leads %&gt;
                          &lt;% else %&gt;
                          &lt;%= paginate @leads %&gt;
                          &lt;% end %&gt;
                      &lt;/div&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
  </code></pre>
  
  <p>It worked when the URL looked like: </p>
  
  <pre><code>/closingloop/leads?unreviewed=true
  </code></pre>
  
  <p>with it like this, the current_page isn't reading it right and it's always showing the @leads instance variable</p>
  
  <pre><code>/closingloop/leads?page=2&amp;unreviewed=true
  </code></pre>
  
  <p>any help would be greatly appreciated. I'm going to continue trying things. Will update with what I find.</p>