I want to show photos with categories from 1-9, but NOT show photos with category 15.
I tried:
scope :no_landing, -> {where(category_id: [1,2,3,4,5,6,7,8,9])}
But there has to be a more efficient way.
Any ideas?
Thanks guys!
I want to show photos with categories from 1-9, but NOT show photos with category 15.
I tried:
scope :no_landing, -> {where(category_id: [1,2,3,4,5,6,7,8,9])}
But there has to be a more efficient way.
Any ideas?
Thanks guys!