[英]Get the following error when trying to run rails server
剛從3.0.0移至3.1.0
當我嘗試運行rails s
,出現以下錯誤:
`alias_method': undefined method `method_missing_with_paginate' for class `ActiveSupport::Deprecation::DeprecatedConstantProxy' (NameError)
分頁gem或插件可能有問題。 您使用will_paginate
還是Kaminari
? 嘗試將分頁gem更新到最新版本。 幾周前, Mislav發布了will_paginate的新版本3.0 ,該版本可 用於Rails3。Kaminari也可用於Rails 3。
該錯誤與 _paginate有關。 您確定您不是只是在某個地方拼寫了will_paginate
嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.