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