def paginated_section(*args, &block)
      pagination = will_paginate(*args)
      if pagination
        pagination + capture(&block) + pagination
      else
        capture(&block)
      end
    end
def paginated_section(*args, &block)
      pagination = will_paginate(*args)
      if pagination
        pagination + capture(&block) + pagination
      else
        capture(&block)
      end
    end
Wrapper for rendering pagination links at both top and bottom of a block
 of content.

   <% paginated_section @posts do %>
     <ol id="posts">
       <% for post in @posts %>
         <li> ... </li>
       <% end %>
     </ol>
   <% end %>

 will result in:

   <div class="pagination"> ... </div>
   <ol id="posts">
     ...
   </ol>
   <div class="pagination"> ... </div>

 Arguments are passed to a <tt>will_paginate</tt> call, so the same options
 apply. Don't use the <tt>:id</tt> option; otherwise you'll finish with two
 blocks of pagination links sharing the same ID (which is invalid HTML).