Forum: Ruby on Rails acts_as_taggable plugin: more delimiters?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2006-02-07 13: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
IceCream.

Pat
30269682335f1fb247d71969fa715b5e?d=identicon&s=25 Roberto Saccon (rsaccon)
on 2006-02-07 16: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
at
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.