0

我正在尝试做这样的事情:

@json = Location.near(request.remote_ip, 500).paginate(:page => params[:page], :per_page => 7).to_gmaps4rails

但它不起作用。我不断得到这个:

undefined method `total_pages' for "[]":String
4

0 回答 0