title: How to remove a key/value pair from a nested hash in params?
body: <p>I would like to remove a key/value from a nested hash in my params.</p>
  
  <p>My params are: </p>
  
  <pre><code>Parameters: {"utf8"=&gt;"✓", "q"=&gt;{"upward_trending"=&gt;"", "downward_trending"=&gt;"", "name_cont"=&gt;"test", "category_id_in"=&gt;["1", ""], "country_eq"=&gt;"", "end_date_gteq"=&gt;"", "end_date_lteq"=&gt;""}, "commit"=&gt;"Filter", "type"=&gt;"Dailyd
  eal"}   
  </code></pre>
  
  <p>I would like to remove <code>name_cont</code> from the <code>q</code> hash.</p>
  
  <p>I am able to remove the full hash by doing:</p>
  
  <pre><code>request.query_parameters.except(:q)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>params.except(:q)
  </code></pre>
  
  <p>But everytime I try anything like:</p>
  
  <pre><code>except(:q[:name_cont])
  except("name_cont")
  except([:q][:name_cont])
  </code></pre>
  
  <p>I get errors.</p>
  
  <p>Any ideas?</p>