我正在尝试找到最佳解决方案:
我有一个用户模型,用户应该能够保存他感兴趣的关键字(多个上下文)。
铁
User-interessts:
Sports: Checkbox(CB) fishing, CB Skyying, CB Tennis, CB Soccer
Music: CB Metal, CB Techno, CB Folk, CB Charts, ...
等等...
用户保存选择后,我想提供以下搜索功能:
find by main category(input: sports, music,....)
find by keyword (input: sports, music, metal, fishing,....)
find by most viewed (show data with the most associated users)
我想要一个自动生成的标签云(就像acts_as_taggable_on提供的)
除此之外,如果列表易于管理会很酷 - 例如标签不能用作主类别和子类别(也许这适用于 tag_contexts)......?
我尝试使用acts_as_tree 来构建它,但这并没有受到限制。然后我尝试了它作为可标记的行为,但我不明白,我如何访问标签模型(我的模型文件夹中没有 tag.rb 文件)。
你能帮助我吗?你有更好的解决方案吗?
谢谢