خرید بک لینک

Vote count: 0

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.

asked 6 mins ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 13 فروردين 1395 ساعت: 1:24

صفحه بندی