title: Push objects into empty array, return filled array in instance variable. - RoR
body: <p>This seems so basic, but I'm having trouble figuring this out. I have this method:</p>
  
  <pre><code>def index
    @stores = Store.all
    @my_deals = []
  
    @stores.each do |s|
      if current_user.voted_for?(s)
        @my_deals.push(s.deals)
      else
  
      end
    end
  
  end
  </code></pre>
  
  <p>If a user has <code>voted_for</code> a store, that stores deals should be pushed into the <code>@my_deals</code> array. I want to use the filled <code>@my_deals</code> array in the view, however it currently just returns <code>[]</code>. I'm guessing it grabs the variable before the code below runs to fill it. How can I use the <code>@my_deals</code> <strong>after</strong> it's been filled?</p>