diff --git a/app/repos/post_repo.rb b/app/repos/post_repo.rb index 45c13b7..143a902 100644 --- a/app/repos/post_repo.rb +++ b/app/repos/post_repo.rb @@ -32,7 +32,7 @@ module Adamantium next if tag_name == "" tag = posts.tags.where(label: tag_name).one || - post + posts .tags .changeset(:create, {label: tag_name, slug: tag_name.downcase.strip.tr(" ", "-").gsub(/[^\w-]/, "")}) .commit