SEARCHING w JOIN in one-to-ma,y relationship

I am doing a Search in my ‘properties’ table on column ‘name’ using in
my controller :
conditions = [“name LIKE ?”, “%#{@params[:query]}%”] unless

this ‘properties’ table has a FK (owner_id) in teh column ‘owner’ to
link it with the table Users…
I can display the, and I would like also to Search on this…

How shoudl I write the :condition with a JOIN to the Users table ?
[“name LIKE ?”, “%#{@params[:query]}%”] unless @params[:query].nil?
[“ LIKE ?”, “%#{@params[:query]}%”] unless

thanks for your help