I am creating a tag system right now where Post has_many: tags ,: through =>: tag_joins
Currently, when a new tag is created, a connection is created, a connection to the tag, and the publication of the tag. The problem is that I'm trying to use before_create to check if a tag with the same name and user ID has already been created. If it was already created, I would like the connection to use the original tag identifier, rather than letting it create a new tag identifier.
Any tips on how I can do this?
source
share