title: I want to paginate the sidebar of gmaps4rails with something like will_paginate
body: <p>I am trying to do something like this:</p>
  
  <pre><code>@json = Location.near(request.remote_ip, 500).paginate(:page =&gt; params[:page], :per_page =&gt; 7).to_gmaps4rails
  </code></pre>
  
  <p>But its not working. I keep getting this:</p>
  
  <pre><code>undefined method `total_pages' for "[]":String
  </code></pre>