简体   繁体   English

红宝石在轨道上(amistad宝石)

[英]ruby on rails(amistad gem)

I want to maintain a friendship within my application for the users to send request and with accept/reject functionalities. 我想在我的应用程序中保持友谊,以便用户发送请求并具有接受/拒绝功能。 I'm using rails 3.2.5 and ruby 1.9.3. 我正在使用Rails 3.2.5和ruby 1.9.3。 I tried the same with amistad gem but unluckily it didn't work. 我曾尝试过使用异想天开的宝石做同样的事,但不幸的是,它没有用。 the "include Amistad::FriendshipModel" in amistad is not including in my User model. amistad中的“包括Amistad :: FriendshipModel”未包含在我的用户模型中。 I cannot find what is the reason for that. 我找不到原因。 can you suggest me some other gem for this functionality in ruby on rails? 您能为我推荐其他一些宝石来实现此功能吗?

An alternative to Amistad is Amico - Relationships (eg friendships) backed by Redis. Amistad的替代方法是Amico -Redis支持的关系(例如,友谊)。

In general a few more gems might also fit your needs: ActiveRecord Reputation System by Twitter or the Community Engine gem. 总的来说,其他一些宝石也可能满足您的需求: Twitter的ActiveRecord信誉系统社区引擎宝石。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM