You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm importing some data into my app that should add tags to some imported items.
I'm getting some ActsAsTaggableOn::DuplicateTagErrors, with messages like "'Tag here' has already been taken" .
Any ideas why this may be?
Surely that tag would just be assigned to the new item and not try to be created, which is what it looks like it's doing?
My code for adding the tags is as follows:
# Add tags for Park name and Park name with Location 1
park.tag_list.add(park.name) # Normal tag
park.tag_list.add(park.name + ' ' + park.location_1) # Allows finding by tag if more than one park with same name
park.tag_list.add('pl-' + park.name + ' ' + park.location_1)
park.save
The text was updated successfully, but these errors were encountered:
Hi,
I'm importing some data into my app that should add tags to some imported items.
I'm getting some
ActsAsTaggableOn::DuplicateTagError
s, with messages like "'Tag here' has already been taken" .Any ideas why this may be?
Surely that tag would just be assigned to the new item and not try to be created, which is what it looks like it's doing?
My code for adding the tags is as follows:
The text was updated successfully, but these errors were encountered: