title: will_paginate gem : Limit number of pages
body: <p><img src="https://i.stack.imgur.com/XF4nS.png" alt="enter image description here" /></p>
  <p>This is my pagination, I want to limit the number of pages to 10, for example, to don't have the same problem as in the picture.</p>
  <p>How can I do it using <code>will_paginate</code> gem?</p>