this more une post about! I read the will_paginate tutorial and the result was
undefined method `total_pages' for #<Mongoid::Criteria:0x007f7c09428d80>
class ServicesController < ApplicationController
def index
@services = Service.all.paginate(page: params[:page], per_page: 5)
@organs = Admin::Organ.all
end
def show
@service = Service.where(permalink: params[:permalink]).first
end
end
<%= will_paginate @services %>
The question are this error, if someone have idea about this, thank to atemption.
