title: Checking Hash if a Value is exists or not in Rails
body: <p>I have a hash as :</p>
  
  <pre><code>hsh = {"http://localhost:3000/sales?"=&gt;[], "am"=&gt;["Room Service", "Coffee Shop", "Business Center"]} 
  </code></pre>
  
  <p>And I have another variable as <strong>c.value</strong>  contains "Room Service"</p>
  
  <p>Now I want to check that if <code>Room Service</code> value is exist in hash or not, I used this but it shows an error.</p>
  
  <pre><code>if hsh.any? {|x| x[:am] == "#{c.value}" }
  </code></pre>
  
  <p>Error: </p>
  
  <pre><code>can't convert Symbol into Integer.
  </code></pre>
  
  <p>How to fix it?</p>