title: How to display multiple images in ActiveAdmin
body: <p>I am using paperclip to upload multiple images. I am also using Active Admin. So far, I have been able to upload multiple images and associate them to my 'product' model. I am also able to display the <strong>"names"</strong> of all the associated images in the index page . However , I am unable to find out how to <strong><em>display</em></strong> 'all' the images (not just names) in my show page of the product model. Please find the code below. </p>
  
  <p>\app\models\product.rb</p>
  
  <pre><code>has_many :images, :dependent =&gt; :destroy
  accepts_nested_attributes_for :images, :allow_destroy =&gt; true
  </code></pre>
  
  <p>\app\models\image.rb</p>
  
  <pre><code>belongs_to :product
  has_attached_file :image, :styles =&gt; {
    :thumb=&gt; "100x100&gt;",
    :small  =&gt; "300x300&gt;",
    :large =&gt; "600x600&gt;"
      }
  </code></pre>
  
  <p>\app\admin\products.rb</p>
  
  <pre><code>index do
    column "Images" do |product|
      product.images.map(&amp;:image_file_name).join("&lt;br /&gt;").html_safe
    end
  end
  
  show do |product|
    attributes_table do
    row "Images" do
        ul do
          li do 
            image_tag(product.images.first.image.url(:small))
          end
          li do 
            image_tag(product.images.second.image.url(:small))
          end
          li do 
            image_tag(product.images.last.image.url(:small))
          end
        end
      end
    end
  end
  </code></pre>
  
  <p>I have found something that works but this is really bad programming. I have currently 3 images associated to each product and I am using the above code inside my show block .
  Please suggest a better way to do this.</p>