新手问题 acts-as-taggable-on 输入半角和全角的标签,出错。

charleslei · September 12, 2012 · 2220 hits

我添加了 GDP和 GDP 两个标签,但是我使用 Map.tagged_with("GDP") 或者 Map.tagged_with("GDP") 语句获取对象时,返回结果为空。这两个标签分别是全角和半角时输出的。

请问怎么解决。

补充: 如果我在数据库的 tags 表里删除 GDP 这个标签,语句 Map.tagged_with("GDP") 就会有值。

No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.