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