title: Image Gallery in Rails
body: <p>I have a multiple upload images, using carrier wave, on my application and with the help of you guys, in another question, I was able to display all the images with a each method. It works very well but I would like to improve it. I want to do a image gallery with a carousel and when the user click at it opens a modal with the image bigger. 
  <br/>
  I try to do following the tutorial of W3C School but just doesn't work.
  When I try to put the Onclick method the page doesn't render. 
  <br/>
  <br/>
  <a href="https://www.w3schools.com/howto/howto_js_lightbox.asp" rel="nofollow noreferrer">https://www.w3schools.com/howto/howto_js_lightbox.asp</a>
  <br/>
  <br/>
  There is any gem that help me do this? There is any tutorial for a rails application?
  <br/>
  I am displaying the images with the following code:</p>
  
  <pre><code>&lt;% @imovel.imagens.each do |imagem| %&gt;
            &lt;div class="col-sm-6 col-md-4"&gt;
              &lt;div class="thumbnail"&gt;
                &lt;%= image_tag(imagem.url) if @imovel.imagens? %&gt;
            &lt;/div&gt;
          &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>