title: rails will_paginate display current page link only
body: <p>Is there any way so that i can display only the current page link with <strong>&lt;&lt; Previous</strong> link hidden when i am on first page and <strong>next >></strong> link hidden when i am on last page.<br>
  It should be as follows </p>
  
  <p>on first page : <strong>1 | next >></strong></p>
  
  <p>on last page(since having 4 pages) : <strong>&lt;&lt; previous | 4</strong></p>
  
  <p>example of any center page : <strong>&lt;&lt; previous | 3 | next >></strong>  </p>
  
  <p>currently what i am getting is : <strong>&lt;&lt; previous | 1 ... 4 | next >></strong></p>
  
  <p>My code </p>
  
  <pre><code>&lt;%= will_paginate @blogs, :class=&gt;"pagination_links",:page_links =&gt; true, :next_label =&gt; "&lt;span&gt;|&amp;nbsp&lt;/span&gt;Next &gt;&gt;",:previous_label =&gt; "&lt;&lt; Previous&lt;span&gt;&amp;nbsp|&lt;/span&gt;",:inner_window   =&gt; 0, :outer_window =&gt; 0 %&gt; 
  </code></pre>
  
  <p>Generated html is</p>
  
  <pre><code>&lt;div class="pagination_links"&gt;
  &lt;span class="previous_page disabled"&gt;
  &lt;&lt; Previous
  &lt;span&gt; |&lt;/span&gt;
  &lt;/span&gt;
  &lt;em class="current"&gt;1&lt;/em&gt;
  &lt;span class="gap"&gt;…&lt;/span&gt;
  &lt;a href="/blog?page=4"&gt;4&lt;/a&gt;
  &lt;a class="next_page" href="/blog?page=2" rel="next"&gt;
  &lt;span&gt;| &lt;/span&gt;
  Next &gt;&gt;
  &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>any solution for this?</p>