有没有一种宝石打造类似Twitter的跟随或者是说一个简单的:的has_many? [英] is there a gem to create Twitter-like follow or is that a trivial :has_many?

查看:98
本文介绍了有没有一种宝石打造类似Twitter的跟随或者是说一个简单的:的has_many?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在想,如果有人想一个类似Twitter的跟随功能,有一个宝石?我知道有一个处理的朋友,但下面的简单的has_many还是有一个宝石这将有助于实现(包括AJAX / jQuery的部分?)

was wondering if someone wanted a Twitter-like follow feature, is there a gem? I know there is one to handle "friends" but is following simply has_many or is there a gem which would help with implementation (including the ajax/jquery portion?)

推荐答案

这是一个插件(不是宝石),但它的rails3兼容,也相当齐全: <一href="https://github.com/tcocca/acts_as_follower/">https://github.com/tcocca/acts_as_follower/

This is a plugin (not a gem), but it's rails3 compatible and is quite complete: https://github.com/tcocca/acts_as_follower/

这篇关于有没有一种宝石打造类似Twitter的跟随或者是说一个简单的:的has_many?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆