ruby creating hash for array.each : <p>This is my code: </p>

<pre><code>@games.each do |game| #@games is an array
  #definitely working 
  game = Hash.new 0
end
</code></pre>

<p>And as you can guess... it's not working. No errors. Just variables like that don't exist. I want my hashes be called by a title of games. Plenty of this, because there are 240titles. </p>

<p>I am pretty sure I have to take this "game = Hash.new 0" out of block, but to be honest I don't have any ideas.</p>

<p>Regards.</p>
