title: Ransack not working (no error, just not functioning)
body: <p>Would love it if anyone can see what I'm doing wrong. Followed the docs: <a href="https://github.com/activerecord-hackery/ransack" rel="nofollow">https://github.com/activerecord-hackery/ransack</a> </p>
  
  <p>My model defines that a <code>Signup has_many Inventories</code></p>
  
  <p>Controller code:</p>
  
  <pre><code>def index
    @q = Inventory.search(params[:q])
    @inventories = @q.result.includes(:signup)
  end
  </code></pre>
  
  <p>View code:</p>
  
  <pre><code>&lt;%= search_form_for @q, url: url_for(controller: 'inventories', action: 'index') do |f| %&gt;
    &lt;%= f.label :item_name_cont %&gt;
    &lt;%= f.search_field :item_name_cont %&gt;
    &lt;%= f.label :signup_email_cont %&gt;
    &lt;%= f.search_field :signup_email_cont %&gt;
    &lt;%= f.submit %&gt;
  &lt;% end %&gt;
  
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;&lt;%= sort_link(@q, :item_name, "Item", default_order: :desc) %&gt;&lt;/th&gt;
        &lt;th&gt;&lt;%= sort_link(@q, 'signups.email', "Email") %&gt;&lt;/th&gt;
        &lt;th&gt;Action&lt;/th&gt;
        &lt;th colspan="5"&gt;&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;% Inventory.all.each do |inventory| %&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;%= inventory.item_name %&gt;&lt;/td&gt;
          &lt;td&gt;&lt;%= inventory.signup.email %&gt; %&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Also, if it's helpful, if I remove the <code>url:</code> specification in the search form, I get an error: <code>No route matches [GET] "/inventories/search"</code></p>