Forum: Ruby on Rails acts_as_taggable plugin: more delimiters?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Pat M. (Guest)
on 2006-02-07 14:43
(Received via mailing list)
I'm going through the Recipes book and got to the Tagging chapter,
wanted to give it a shot.  According to the text, tag_with takes a
space-delimited list of tags.  Is there a way to use different
delimeters, such as commas or single quotes?  Some tags can
potentially have more than one word, such as 'ice cream'.  I'd like to
be able to use those without doing something funky like ice_cream or

Roberto S. (Guest)
on 2006-02-07 17:17
(Received via mailing list)
I think if you save it as array or hash, than it dosen't matter what
delimiters were used at the form in the view. I took a very quick look
the source, and it is just a couple of line of code (the other act_as
taggable gem is much larger), so it might be  easy to adapt it to your
needs, in case it only accepts strings for saving the tags.
This topic is locked and can not be replied to.