ruby on rails - follow and following with status -
i'm working on follow , following functionality of article https://www.railstutorial.org/book/following_users
it's working fine added column name status boolean present follow request has been accepted. current_user.following return relations of current_user need users relationship status true. code totally same mention article , added status column in relationship table. kindly me
i don't know original code, intuitively should work
current_user.following.where(status: true)
Comments
Post a Comment