title: Ransack gem not querying results
body: <p>I can't figure out why the search produces no results. Sometimes it gives partial results from the verified and accetpes_bitcoin checkboxes</p>
  <p>I have read through the documentation, I can't find the solution</p>
  <p>My search form:</p>
  <pre><code> &lt;%= search_form_for @q do |f| %&gt;
      &lt;%= f.search_field :business_name_cont%&gt;
      &lt;%= f.collection_select :categories_id_eq, Category.all, :id, :name, include_blank: &quot;Select Category&quot; %&gt;
      &lt;%=f.select :addresses_country_cont,Address.all.map{|n|n.country}, include_blank: &quot;Select Country&quot;%&gt;
      &lt;%= f.check_box :verified_true %&gt;
      &lt;%= f.check_box :accepts_bitcoin_true %&gt;
      &lt;%=f.submit&quot;%&gt;
      &lt;% end %&gt;
  </code></pre>
  <p>Controller:</p>
  <pre><code>class BusinessesController &lt; ApplicationController
  ......
   def index
    @q = Business.ransack(params[:q])
    @businesses = @q.result.includes(:addresses)
  ....
  </code></pre>
  <p>The <code>business_name_cont</code> produces no results.</p>
  <p>I noticed the form queries only one record out of the 100 seeded data I have,</p>
  <p>Model:</p>
  <pre><code>class Business &lt; ApplicationRecord
  .......
  has_many :addresses, inverse_of: :business ,dependent: :destroy
  ......
  
  
  class Address &lt; ApplicationRecord
     belongs_to :business
     validate :country, :phone :street ... etc
  ......
  </code></pre>
  <p>Search params when only verified checkbox is selected:</p>
  <pre><code>Started GET &quot;/businesses?q%5Bbusiness_name_cont%5D=&amp;q%5Bcategories_id_eq%5D=&amp;q%5Baddresses_country_cont%5D=&amp;q%5Bverified_true%5D=0&amp;q%5Bverified_true%5D=1&amp;q%5Baccepts_partnership_true%5D=0&amp;commit=Search+Business&quot; for ::1 at 2021-04-09 22:00:51 +0100
  Processing by BusinessesController#index as HTML
    Parameters: {&quot;q&quot;=&gt;{&quot;business_name_cont&quot;=&gt;&quot;&quot;, &quot;categories_id_eq&quot;=&gt;&quot;&quot;, &quot;addresses_country_cont&quot;=&gt;&quot;&quot;, &quot;verified_true&quot;=&gt;&quot;1&quot;, &quot;accepts_partnership_true&quot;=&gt;&quot;0&quot;}, &quot;commit&quot;=&gt;&quot;Search Business&quot;}
    Rendering layout layouts/application.html.erb
    Rendering businesses/index.html.erb within layouts/application
    Category Load (3.6ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; ORDER BY name
    ↳ app/views/businesses/index.html.erb:7
     (2.1ms)  SELECT &quot;addresses&quot;.&quot;country&quot; FROM &quot;addresses&quot; ORDER BY country
    ↳ app/views/businesses/index.html.erb:8
    Business Load (3.7ms)  SELECT DISTINCT &quot;businesses&quot;.* FROM &quot;businesses&quot; WHERE (&quot;businesses&quot;.&quot;verified&quot; = TRUE AND &quot;businesses&quot;.&quot;accepts_partnership&quot; != TRUE) ORDER BY &quot;businesses&quot;.&quot;point&quot; DESC
    ↳ app/views/businesses/index.html.erb:46
    Address Load (1.4ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1  [[&quot;business_id&quot;, 27]]
    ↳ app/views/businesses/index.html.erb:46
    ActiveStorage::Attachment Load (1.3ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 27], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.1ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 53], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.6ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 27], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.4ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 27], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.2ms | Allocations: 59)
    Business Load (2.3ms)  SELECT &quot;businesses&quot;.* FROM &quot;businesses&quot; WHERE &quot;businesses&quot;.&quot;accepts_partnership&quot; = $1 LIMIT $2  [[&quot;accepts_partnership&quot;, true], [&quot;LIMIT&quot;, 7]]
    ↳ app/views/businesses/index.html.erb:100
    Rendered businesses/index.html.erb within layouts/application (Duration: 46.4ms | Allocations: 11231)
  [Webpacker] Everything's up-to-date. Nothing to do
    Rendered shared/_logo.html.erb (Duration: 0.1ms | Allocations: 38)
    Rendered shared/_nav.html.erb (Duration: 0.7ms | Allocations: 285)
    Rendered layout layouts/application.html.erb (Duration: 67.3ms | Allocations: 16110)
  Completed 200 OK in 71ms (Views: 49.7ms | ActiveRecord: 18.5ms | Allocations: 16999)
  </code></pre>
  <p>i have 5 verified businesses but only 1 shows up</p>
  <h3>search params when only accepts_partnership checkbox is selected</h3>
  <pre><code>    Started GET &quot;/businesses?q%5Bbusiness_name_cont%5D=&amp;q%5Bcategories_id_eq%5D=&amp;q%5Baddresses_country_cont%5D=&amp;q%5Bverified_true%5D=0&amp;q%5Baccepts_partnership_true%5D=0&amp;q%5Baccepts_partnership_true%5D=1&amp;commit=Search+Business&quot; for ::1 at 2021-04-09 22:06:37 +0100
  Processing by BusinessesController#index as HTML
    Parameters: {&quot;q&quot;=&gt;{&quot;business_name_cont&quot;=&gt;&quot;&quot;, &quot;categories_id_eq&quot;=&gt;&quot;&quot;, &quot;addresses_country_cont&quot;=&gt;&quot;&quot;, &quot;verified_true&quot;=&gt;&quot;0&quot;, &quot;accepts_partnership_true&quot;=&gt;&quot;1&quot;}, &quot;commit&quot;=&gt;&quot;Search Business&quot;}
    Rendering layout layouts/application.html.erb
    Rendering businesses/index.html.erb within layouts/application
    Category Load (2.1ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; ORDER BY name
    ↳ app/views/businesses/index.html.erb:7
     (2.2ms)  SELECT &quot;addresses&quot;.&quot;country&quot; FROM &quot;addresses&quot; ORDER BY country
    ↳ app/views/businesses/index.html.erb:8
    Business Load (4.0ms)  SELECT DISTINCT &quot;businesses&quot;.* FROM &quot;businesses&quot; WHERE (&quot;businesses&quot;.&quot;verified&quot; != TRUE AND &quot;businesses&quot;.&quot;accepts_partnership&quot; = TRUE) ORDER BY &quot;businesses&quot;.&quot;point&quot; DESC
    ↳ app/views/businesses/index.html.erb:46
    Address Load (1.6ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; IN ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)  [[nil, 5], [nil, 9], [nil, 10], [nil, 12], [nil, 14], [nil, 15], [nil, 17], [nil, 20], [nil, 21], [nil, 22], [nil, 24], [nil, 31], [nil, 35]]
    ↳ app/views/businesses/index.html.erb:46
    ActiveStorage::Attachment Load (1.5ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 5], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.2ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 9], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.8ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 5], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.1ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 5], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.2ms | Allocations: 59)
    ActiveStorage::Attachment Load (1.2ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 9], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.1ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 17], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.2ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 9], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (2.0ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 9], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.2ms | Allocations: 55)
    ActiveStorage::Attachment Load (1.4ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 10], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.6ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 19], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.5ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 10], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.4ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 10], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.2ms | Allocations: 54)
    ActiveStorage::Attachment Load (1.2ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 12], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.3ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 23], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.4ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 12], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.3ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 12], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    ActiveStorage::Attachment Load (1.2ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 14], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.1ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 27], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.8ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 14], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.3ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 14], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.3ms | Allocations: 57)
    ActiveStorage::Attachment Load (1.2ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 15], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.1ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 29], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.7ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 15], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.2ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 15], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.2ms | Allocations: 55)
    ActiveStorage::Attachment Load (1.1ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 17], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.1ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 33], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.2ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 17], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.0ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 17], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.2ms | Allocations: 57)
    ActiveStorage::Attachment Load (1.0ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 20], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.1ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 39], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.0ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 20], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.0ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 20], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    ActiveStorage::Attachment Load (1.1ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 21], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.2ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 41], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.0ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 21], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.0ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 21], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    ActiveStorage::Attachment Load (1.0ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 22], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.0ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 43], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.1ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 22], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.3ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 22], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    ActiveStorage::Attachment Load (1.1ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 24], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.1ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 47], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.0ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 24], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.2ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 24], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.3ms | Allocations: 56)
    ActiveStorage::Attachment Load (1.1ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 31], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.1ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 61], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.1ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 31], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.2ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 31], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.2ms | Allocations: 55)
    ActiveStorage::Attachment Load (1.1ms)  SELECT &quot;active_storage_attachments&quot;.* FROM &quot;active_storage_attachments&quot; WHERE &quot;active_storage_attachments&quot;.&quot;record_id&quot; = $1 AND &quot;active_storage_attachments&quot;.&quot;record_type&quot; = $2 AND &quot;active_storage_attachments&quot;.&quot;name&quot; = $3 LIMIT $4  [[&quot;record_id&quot;, 35], [&quot;record_type&quot;, &quot;Business&quot;], [&quot;name&quot;, &quot;logo&quot;], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    ActiveStorage::Blob Load (1.0ms)  SELECT &quot;active_storage_blobs&quot;.* FROM &quot;active_storage_blobs&quot; WHERE &quot;active_storage_blobs&quot;.&quot;id&quot; = $1 LIMIT $2  [[&quot;id&quot;, 69], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:56
    Category Load (1.0ms)  SELECT &quot;categories&quot;.* FROM &quot;categories&quot; INNER JOIN &quot;business_categories&quot; ON &quot;categories&quot;.&quot;id&quot; = &quot;business_categories&quot;.&quot;category_id&quot; WHERE &quot;business_categories&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 35], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:62
    Address Load (1.0ms)  SELECT &quot;addresses&quot;.* FROM &quot;addresses&quot; WHERE &quot;addresses&quot;.&quot;business_id&quot; = $1 LIMIT $2  [[&quot;business_id&quot;, 35], [&quot;LIMIT&quot;, 1]]
    ↳ app/views/businesses/index.html.erb:69
    Rendered businesses/business_card/_card_footer.html.erb (Duration: 0.2ms | Allocations: 55)
    Business Load (1.0ms)  SELECT &quot;businesses&quot;.* FROM &quot;businesses&quot; WHERE &quot;businesses&quot;.&quot;accepts_partnership&quot; = $1 LIMIT $2  [[&quot;accepts_partnership&quot;, true], [&quot;LIMIT&quot;, 7]]
    ↳ app/views/businesses/index.html.erb:100
    Rendered businesses/index.html.erb within layouts/application (Duration: 204.2ms | Allocations: 63445)
  [Webpacker] Everything's up-to-date. Nothing to do
    Rendered shared/_logo.html.erb (Duration: 0.1ms | Allocations: 38)
    Rendered shared/_nav.html.erb (Duration: 0.7ms | Allocations: 282)
    Rendered layout layouts/application.html.erb (Duration: 211.0ms | Allocations: 68316)
  Completed 200 OK in 214ms (Views: 137.9ms | ActiveRecord: 73.7ms | Allocations: 69201)
  </code></pre>
  <p>Thanks</p>