2015-04-05 69 views

回答

1

,如果你有tag_list attribute..which商店,你可以试试这个users..then的标签: -

tag_list=['Good','Bad','Frequent'] 
User.tagged_with(tag_list,:any=>true) 

这会给你所有提到的任何标签的用户。 查看this以获得更多信息acts-as-taggable-on

+0

工作。我在它上面增加了大小,它给了我这个列表的数量。非常感谢 – GhostRider 2015-04-05 18:36:52

+0

很高兴帮助你:)。 @GhostRider – Milind 2015-04-05 18:42:47