title: Make grails pagination
body: <p>My controller returns results in a Array like this: </p>
  
  <pre><code> render (template: 'show' , model: [changes: changes])
  </code></pre>
  
  <p>Show is a default action and changes is an Array created with a query(<code>createCriteria</code>).
  How can I make pagination in my <code>index.gsp</code> page which is displaying results in a HTMl div?</p>
  
  <p>My problem:</p>
  
  <p>Controller: </p>
  
  <pre><code>def list() {
          [terminHistorie: changes, terminHistorieCount: changes.size()]
      }
  </code></pre>
  
  <p>gsp:</p>
  
  <pre><code>&lt;g:paginate controller="terminHistorie" action="list" total="${terminHistorieCount}"/&gt;
  </code></pre>
  
  <p>Error: Tag [paginate] is missing required attribute [total] at C:/Users/matejb/Documents/NetBeansProjects/gutmann/grails-app/views/terminHistorie/index.gsp:309</p>