title: Photo Gallery in ruby on rails website
body: <p>I'm new to Rails and I'm trying to make some simple image gallery for portfolio, maybe somebody can give some advise. I'm loogking for something like modal in Bootstap.</p>
  
  <p>I have something like this for the moment</p>
  
  <pre><code>&lt;article class="thumbnail"&gt;           
    &lt;a href="#myModal" role="button" class="btn" data-toggle="modal"&gt;&lt;img src="/assets/project1.png" alt="Project1" /&gt;&lt;/a&gt;
    &lt;div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
       &lt;div class="modal-header"&gt;
         &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;×&lt;/button&gt;
         &lt;h3 id="myModalLabel"&gt;&lt;img src="/assets/project1.png" alt="Project1" /&gt;&lt;/h3&gt;
       &lt;/div&gt;
       &lt;div class="modal-footer"&gt;
         &lt;a class="btn btn-info modal-prev"&gt; Previous&lt;/a&gt;
         &lt;a class="btn btn-primary modal-next"&gt;Next &lt;i class="icon-arrow-right icon-white"&gt;&lt;/i&gt;&lt;/a&gt;           
       &lt;/div&gt;
     &lt;/div&gt;
  &lt;/article&gt;
  </code></pre>
  
  <p>I'm thinking how to make my modal footer works.</p>