[英]Ruby on Rails Routes Error
我正在使用Amistad來實現友誼模型。 我在friendships_controller有五個動作: index , request_friend , approve_friend , remove_friend , block_friend 。 我不確定如何在路由文件中定義路由,我嘗 ...
[英]Ruby on Rails Routes Error
我正在使用Amistad來實現友誼模型。 我在friendships_controller有五個動作: index , request_friend , approve_friend , remove_friend , block_friend 。 我不確定如何在路由文件中定義路由,我嘗 ...
[英]Rails 4 : Amistad gem breaks polymorphic association
我有一個使用Amistad gem的用戶模型。 到目前為止,一切工作正常。 在我的應用程序中,我還有一個members表,該表只有2個字段: user_id和group_id 。 由於我需要使用這個members表來存儲社區成員,因此我決定使其成為多態表: 為了繼續,我創建了一 ...
[英]Rails Not In - Amistad Gem - Not selecting people that have blocked you or you have blocked
使用無與倫比的寶石,我可以獲得People.all 在查看了文檔之后,看起來像 返回阻止您的人和您阻止的人 https://github.com/raw1z/amistad/wiki 是否可以返回除您阻止的人和阻止您的人之外的所有人員的查詢? 我花了很多時間試圖解決這 ...
[英]How do I create friends?
我似乎無法獲得《阿米斯塔德》的友誼才能正常工作。 我收到以下錯誤: 我也在使用devise和cancan。 我按照Wiki頁面上的gem設置,並按照此相關文章中的說明創建了控制器。 我以以下方式遍歷我的用戶,以檢查用戶的當前狀態並提供適當的操作。 弄清楚在我的模式中看 ...
[英]Customizing amistad : adding timestamps
我正在使用gem amistad管理我的應用程序中的友誼。 我想跟蹤何時發生關系能夠顯示一些通知。 首先,我想在關系模型中添加一個時間戳,以便能夠執行以下查詢: retrieve all Friendships where receiving user is current user ...