title: Undefined method `name' for #<Array:> in ActiveAdmin row
body: <p>I'm using ActiveAdmin, here is my show page:</p>
  <pre><code>show do |product|
    attributes_table do
      row :name
      row :photos do
        @photos = product.photos
        @photos.each do |p|
          image_tag(p.photo)
        end
      end
    end
    active_admin_comments
  end
  </code></pre>
  <p>I get this error: <code>undefined method name' for #&lt;Array:&gt;</code></p>
  <p>it's on this line:</p>
  <pre><code>@photos = product.photos
  </code></pre>
  <p>Why and how? I dont even have <code>name</code> in Photo.</p>
  <h2>UPDATE</h2>
  <p>When I'm selecting one photo—for example the first photo of the product—it works! Really weird.</p>
  <h2>UPDATE</h2>
  <p>It was only resetting the WEBRICK ... but now i encounter a new problem.
  My photo holds the url is photo:string and when i'm using the code above it prints:</p>
  <pre><code>[#&lt;Photo id: 1, created_at: &quot;2012-08-31 20:34:15&quot;, updated_at: &quot;2012-08-31 20:34:15&quot;, photo: &quot;innoMicro.jpg&quot;, product_id: 3&gt;]
  </code></pre>
  <p>And not the url only..</p>
  <h2>UPDATE (WORKING SOLUTION!)</h2>
  <p>Here is my final and working code:</p>
  <pre><code>  show do |product|
      attributes_table do
        row :name
        row :description
        product.photos.each do |p|
          row :photo do
            image_tag(p.photo, :height =&gt; '256', :width =&gt; '256')
          end
        end
      end
      active_admin_comments
    end
  </code></pre>
  <p>The problem is that each photo has a new row.. can i keep them all in the same row?</p>