diff --git a/app/models/post.rb b/app/models/post.rb index cac04dbc84ad70deb78bd863f15afbe8e07b9058..458b91df77669d4f2798a1c314f407d5a6c880cf 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -265,9 +265,9 @@ class Post < ApplicationRecord def maximum_tags if tags_cache.length > 5 - errors.add(:tags, "can't have more than 5 tags") + errors.add(:base, "Post can't have more than 5 tags.") elsif tags_cache.empty? - errors.add(:tags, 'must have at least one tag') + errors.add(:base, 'Post must have at least one tag.') end end