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