title: Ruby: Looping and calling associative arrays (TypeError no implicit conversion of String into Integer)
body: <p>So I have this piece of code:</p>
  
  <pre><code>node['nginx'][0]['server_name']='black.domain.com'
  node['nginx'][0]['app_server']='http://10.50.0.163:8090'
  node['nginx'][0]['redirect_path']='/mesh'
  
  node['nginx'][1]['server_name']='red.domain.com'
  node['nginx'][1]['app_server']='http://10.50.0.163:8090'
  node['nginx'][1]['redirect_path']='/mesh'
  
  node.default['nginx'].each do |key, value|
      value.each do |prop|
              Chef::Log.info prop['app_server']       
      end
  end
  </code></pre>
  
  <p>Like the title says it's erorring out on:</p>
  
  <pre><code> 21&gt;&gt;       Chef::Log.info prop['app_server']
  </code></pre>
  
  <p>My question is how do I loop though this associative array?</p>
  
  <p>Best,
  -Iulian</p>