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