undefined method `num_pages' for #<Article::ActiveRecord_AssociationRelation:0x005580af6ea570> Did you mean? max_pages