0
'public_activity'gem을 사용하여 활동 피드를 작성하고 있습니다. 본 적이 있습니다. this tutorial'public_activity'에 대한 색인 작업
이 자습서에서는 특정 사용자를 따르는 사용자의 활동 피드를 만드는 방법을 보여줍니다.
class ActivitiesController < ApplicationController
def index
@activities = PublicActivity::Activity.order("created_at desc").where(owner_id: current_user.followed_user_ids, owner_type: "User")
end
...
색인 페이지에서 자신이 팔로우 한 사람의 활동을 볼 수 있도록 어떻게 current_user의 ID를 추가 할 수 있습니까?