标签: ruby-on-rails
我在我的控制器中
def show @intents= @user.intents.page(1).per(2) end
在我看来
= paginate @intents
并以undefined method 'page' for #<...::ActiveRecord_Associations_CollectionProxy>
undefined method 'page' for #<...::ActiveRecord_Associations_CollectionProxy>