I have a span that will display when an open house is detected in the db using
<% if listing.open_houses.exists? %>
@open_houses = OpenHouse.upcoming.where(listing_id: @listing.id).where('open_houses.start_date >= ?', Date.current).order(start_date: :asc)
I was able to use
<% if @open_houses.count >= 1 %>! Something small and silly that took me way too much time to figure out.