Try catching the ActiveRecord::RecordNotUnique to detect duplicate tags.