1

I'm using acts-as-taggable-on in my application and I want to be able to use tag names that contain commas such as "Ben, Jerry." However, when I put something like '"Ben, Jerry", Bob, Bill' in the tag list, it gets returned as "Ben, Jerry, Bob, Bill."

If I go into the database and manually change the name of one of the tags to "Ben, Jerry" then when I open the object, the tag list shows up as '"Ben, Jerry", Bob, Bill' but if I save that it gets returned as "Ben, Jerry, Bob, Bill"

Am I doing something wrong or is acts-as-taggable-on not capable of saving tags with commas by default?

blim8183
  • 768
  • 1
  • 8
  • 23
  • 3
    Does this answer your question? http://stackoverflow.com/questions/4591648/changing-the-default-delimiter-with-acts-as-taggable-on – Devin M Jun 17 '11 at 17:08

1 Answers1

1

Change your delimiter to a semi-colon:

ActsAsTaggableOn::TagList.delimiter = '; '
Simpleton
  • 6,285
  • 11
  • 53
  • 87