title: ruby on rails loop : doesn't ouput data
body: <p>I have the following codes that works in the rails console</p>
  
  <pre><code>pages = Page.all
   pages.each do |i|
    p i.name
  end
  </code></pre>
  
  <p>but when I want to do the same thing in a partial it only output the hole array of Pages but it's seems not entering in the loop block.</p>