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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

Command prompt result in label. Python 2.7 -