title: Fancybox Gallery showing all images
body: <p>I currently am using the fancybox-rails gem in order to show a gallery of images.  What I would like to do it to have a single link open up the gallery of all the images.  Here is my current code:<br></p>
  
  <pre><code> &lt;% for painting in @gallery %&gt;
      &lt;%= link_to "view gallery", painting.image_url.to_s, { :class =&gt; "grouped_elements", :rel =&gt; "studio_images", :title =&gt; painting.caption } %&gt;
   &lt;% end %&gt;&lt;br&gt;
  </code></pre>
  
  <p>This code is giving me eight different links, all linking to the same gallery.  I would like just one link to be shown and have that link open the entire gallery.  I understand here that I am creating eight different links, but I want to be able to add to this gallery dynamically when I add a new image.  Below is my JS code:<br></p>
  
  <pre><code>jQuery -&gt;
    $("a.grouped_elements").fancybox({
        'transitionIn'  :   'elastic',
        'transitionOut' :   'elastic',
        'speedIn'       :   600,
        'speedOut'      :   200,
        'overlayShow'   :   false
    });&lt;br&gt;
  </code></pre>
  
  <p>Is there something I can do in jQuery that would allow these links to be hidden and just have a single link open the gallery?</p>