I am trying to create an instance Object of all Users that have one or more Video in my controller, so there is one User that has many videos. So I have a User.rb model that has_many :videos, and my Video.rb model that belongs_to :user. I want to select all the users that have atleast one video.
I am really new at querying SQL so I'm not sure how to join tables or if I even need to.
ex:
@users = User.where(user.video not nil?)