You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The p.steps.paginate(page: 1, per_page: 2).count call will call the count method on the underlying ActiveRecord::AssociationRelation
The p.steps.paginate(page: 1, per_page: 2).to_a.count call will execute the paginate method when the to_a method is called, and then the count method on the Array.
As for 'correctness'... it states in the README: # paginate in Active Record now returns a Relation
I have an issue with nested resource. Here is example:
but,
So, which case is correct?
The text was updated successfully, but these errors were encountered: