2
當使用雷與mongoid,我得到的錯誤mongoid和雷拋出未定義的方法頁
undefined method `page' for #<Mongoid::Contextual::Mongo:0x007fe48c195af0>
不知道什麼是錯的。我甚至嘗試運行
Item.page(params[:page])
,我得到的錯誤
NoMethodError: undefined method `page' for Item:Class
寶石出現在Gemfile中。雙重檢查。