Rails Conditional Where ActiveRecord::AssociationRelation Returns an Empty Array

后端 未结 0 1319
故里飘歌
故里飘歌 2021-01-01 03:54

I\'m trying to get a collection conditionally:

# app/controllers/articles_controller.rb
if ...
  @articles = current_us         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题