amistad

    0热度

    1回答

    使用阿米斯特德创业板,我可以得到People.all 审查它看起来像 People.blockades and People.blockades_by 返回文档后的人已阻止你和你的人已经封锁 https://github.com/raw1z/amistad/wiki 是否有可能返回所有的人的查询,除了人那些你被阻挡的和那些阻挡你的人?我花了很多时间试图解决这个问题无济于事。你在哪里, a =

    0热度

    1回答

    我有一个用户模型,我在其中使用Amistad gem。到目前为止,一切正常。 在我的应用程序中,我也有一个members表,它只有2个字段:user_id和group_id。 因为我需要用这个members表也存储社区的成员,我决定把它的多态表: class CreateMembers < ActiveRecord::Migration def change create_ta

    0热度

    2回答

    我似乎无法让Amistad友谊正常工作。我收到以下错误: ActiveRecord::RecordNotFound in FriendshipsController#update Couldn't find Friendship with id=29 我也使用devise和cancan。我遵循维基页面上的创业板设置,并按this related post中所述创建了我的控制器。 class

    1热度

    3回答

    我正在使用Amistad实现友谊模型。我在friendships_controller:index,request_friend,approve_friend,remove_friend, block_friend中有五个动作。 我不确定如何在路径文件中定义路由,我尝试使用resources :friendships,但无法通过用户配置文件发出好友请求。 以下是文件: 的routes.rb: re