Unintuitive behavior related to tag separators
Reported by eksatx | July 1st, 2009 @ 06:20 PM
See http://groups.google.com/group/communityengine/browse_thread/thread... for more discussion.
Tagging something: OneWord,Two Words
results in three tags: OneWord, Two, Words
Also, in the text field (for New and Edit actions), the tag list is displayed like this:
OneWord+ Two+ Words
This behavior is nonintuitive and many of my users have reported being confused by it.
Changing tag_list.rb like this:
-self.delimiter = /+|,| /
+self.delimiter = ','
appears to make things work better.
Tagging something: OneWord,Two Words
results in two tags: OneWord,Two Words
and is displayed in edit fields as OneWord, Two Words
However, there must be more to it than this.
- Making this change causes 10 tests to fail.
- This is actually the default setting when you install AATOS. It appears that you made this change along with some other changes in this commit: b42612e.
It appears that the current way things work was done to achieve something specific related to fixing multi-word tags, but it is not clear exactly what.
I don't mind helping try to solve this one, but I don't want to waste time undoing something that you did intentionally.
Let me know what I can do to help.
Comments and changes to this ticket
-

eksatx July 4th, 2009 @ 11:52 AM
I took a closer look at the tests and saw that they only fail because they are using a space as a tag separator. If I change tests to only use a comma as a tag separator (tag_list="tag1,tag2") then they all pass fine.
-
bruno July 12th, 2009 @ 10:27 AM
- → State changed from new to resolved
I believe your commits fixed this issue.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
CommunityEngine is a free, open-source social network plugin for Ruby on Rails applications. Drop it into your new or existing application, and you’ll instantly have all the features of a basic community site.
