Questions tagged [amistad]

Amistad adds friendships management into a rails 3.0 application.

Amistad adds friendships management into a rails 3.0 application. It supports ActiveRecord 3.0.x, Mongoid 3.0.x and MongoMapper 0.12.0.

https://github.com/raw1z/amistad

6 questions
1
vote
2 answers

Ruby on Rails Routes Error

I am using Amistad to implement the friendship model. I have five actions in the friendships_controller: index, request_friend, approve_friend, remove_friend, block_friend. I am not sure on how to define the routes in the routes file, I tried using…
Ashksta
  • 61
  • 2
  • 7
0
votes
1 answer

Rails 4 : Amistad gem breaks polymorphic association

I have a user model in which I'm using the Amistad gem. Everything was working fine so far. In my app, I also have a members table which have only 2 fields : user_id and group_id. Since I need to use this members table to also store communities…
lkartono
  • 2,323
  • 4
  • 29
  • 47
0
votes
0 answers

trouble returning profiles that have blocked you using amistad gem

I am having trouble returning all profiles that have blocked you with the amistad gem. I am able to find profiles you have blocked. And the profiles other individual profiles have blocked. a = Profile.find_by_id 6 b = Profile.find_by_id…
bezzoon
  • 1,755
  • 4
  • 24
  • 52
0
votes
1 answer

Rails Not In - Amistad Gem - Not selecting people that have blocked you or you have blocked

Using the amistad gem I can get People.all After reviewing the documentation it looks like People.blockades and People.blockades_by returns the people that have blocked you and the people you have blocked https://github.com/raw1z/amistad/wiki Is…
bezzoon
  • 1,755
  • 4
  • 24
  • 52
0
votes
2 answers

How do I create friends?

I can't seem to get Amistad friendships to work correctly. I am getting the following error: ActiveRecord::RecordNotFound in FriendshipsController#update Couldn't find Friendship with id=29 I am also using devise and cancan. I followed the gem…
Thomas
  • 2,426
  • 3
  • 23
  • 38
0
votes
1 answer

Customizing amistad : adding timestamps

I am using the gem amistad to manage friendships in my application. I would like to track when relationships occur to be able to display some notifications. First, I would like to add a timestamp to the relationship model in order to be able to do…
Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236