title: Getting 'active_link_to' to work properly with Pagination
body: <p>I am trying to get <code>active_link_to</code> to work properly when I use <code>pagination</code>. I have 3 <code>nav-tabs</code> and they all work fine when selected, however, when I click on my pagination button to view more records my current nav-tab losses it's active status (style). What steps do I need to fix this issue? </p>
  
  <p>Also 1 more minor issue if somebody doesn't mind. I'm using a <code>log-in</code> screen to get me to my main layout. When I log in, none of the <code>nav-tabs</code> are <code>active</code>. How do I render this? If I click on one of them it shows active but I want the 1st tab to display active by default. Again, I am using <code>active_link_to</code>.   </p>
  
  <p>Thank You.  </p>
  
  <p>TW</p>
  
  <p>Here is my updated post with Code:</p>
  
  <p>In my Gemfile I have </p>
  
  <p><code>gem kaminari</code>
  <code>gem active_link_to</code></p>
  
  <p>In my <code>projects_controller.rb</code></p>
  
  <p><code>@projects = Kaminari.paginate_array(@projects).page(params[:page]).per(10)</code></p>
  
  <p>In my <code>index.html.erb</code></p>
  
  <p>At the end of my page </p>
  
  <p><code>&lt;/table&gt;</code></p>
  
  <p><code>&lt;/div&gt;</code></p>
  
  <p><code>&lt;%= paginate @projects %&gt;</code>  </p>
  
  <p>In my <code>projects_helper.rb</code></p>
  
  <pre><code>def active_link_to(text, link)
      content_tag(:li, :class =&gt; request.fullpath == link ? 'active' :nil) do 
        link_to text, link
      end 
  end
  </code></pre>
  
  <p>In my Layout <code>application.html.erb</code></p>
  
  <pre><code>&lt;ul class="nav nav-tabs"&gt;
     &lt;li&gt;&lt;%= active_link_to("Active Projects", projects_path) %&gt;&lt;/li&gt;
     ....
     ....
  &lt;/ul&gt;
  </code></pre>