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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -