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