title: Rails, join 2 tables, show count more than 1 with where
body: <p>I'm combining 2 tables to see if any car exists at that location but I also would like to combine <code>where</code> clause. </p>
  
  <pre><code>@country.car_cities.joins(:cars).group("car_cities.id").having("count(cars.id) &gt; 0")
  </code></pre>
  
  <p>This is working just fine. This gets all the cars. But I have a column called <code>business_model</code>. I would like to combine with the <code>cars.where(business_model: @rental_type)</code></p>