title: Rails - stacking flash messages
body: <p>My page is using remote calls to render the content (each time a button is clicked), so there are no postbacks.</p>
  
  <p>I generate a flash notice like this in the controller action:</p>
  
  <pre><code>if @something.save
            format.html { redirect_to some_other_path(@this,@that), notice: t('messages.messages.great_success')}
            format.js { flash[:notice] = t('messages.messages.great_success') }
  </code></pre>
  
  <p>Now I had an issue where the notice would not go away so I added this JS code:</p>
  
  <pre><code>$('document').ready(function() {
      setTimeout(function()
      {
          $('.alert-info').slideUp();
      }, 5000);
  });
  </code></pre>
  
  <p>But it seems that on my page the user can click the button which can call the controller
  action multiple times, so I need to be able to "stack" the error messages one of top of each other.</p>
  
  <p>Is there a Rails way to do this?</p>