title: rails pagination issue with tabs
body: <p>i was wondering if it was possible to only affect one tab when clicking through pagination? im using the will_paginate gem</p>
  
  <p>i have something that looks like...</p>
  
  <pre><code>    &lt;div class="tab-content"&gt;
        &lt;div class="tab-pane active span8" id="received"&gt;
          &lt;h3&gt;Received Messages&lt;/h3&gt;
          &lt;%= render 'received_message_feed'%&gt;
        &lt;/div&gt;
        &lt;div class="tab-pane span8" id="sent"&gt;
          &lt;h3&gt;Sent Messages&lt;/h3&gt;
          &lt;%= render 'sent_message_feed'%&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>which renders...</p>
  
  <pre><code>&lt;% if @sent_message_items.any? %&gt;
    &lt;ol class="microposts"&gt;   
      &lt;%= render partial: 'shared/message_item', collection: @sent_message_items %&gt;
    &lt;/ol&gt;
    &lt;%= will_paginate @sent_message_items %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>i have an equivalent received_message partial as well.</p>
  
  <p>in my first block of code, i have 2 tabs, one for my received messages and one for my sent messages. lets say i click on my sent tab and then click on page 2. two problems arise from this.</p>
  
  <ol>
  <li><p>the page refreshes and goes to my received messages tab, which is at first active tab. is there a way to make it go back to sent?</p></li>
  <li><p>the bigger problem, when i click on page 2 while in sent tab, it will also load page 2 on my received tab. is there a way to prevent this?</p></li>
  </ol>
  
  <p>im not sure how to fix this... help would be appreciated. thank you!</p>
  
  <p>UPDATE.</p>
  
  <p>i winded up using ajax pagination, so then the page doesn't ever reload and problem 1 is circumvented. however problem 2 is still an issue...</p>