title: How do i get my error messages to fade out? in RubyOnRails 3
body: <p>The error i want to show</p>
  
  <pre><code>flash[:error] = "Invalid username/password combination."
  </code></pre>
  
  <p>I've tried</p>
  
  <pre><code>$(document).ready( function() {// When the Dom is ready
      $('.error').hide();//Hide the div
      $('.alert').hide();
      $('.notice').hide();
      $('.success').hide();
      $('.info').hide();
  
      $(".error").fadeOut(2000); //Add a fade out effect that will last for 2000 millisecond
      $(".alert").fadeOut(2000);
      $(".notice").fadeOut(2000);
      $(".success").fadeOut(2000);
      $(".info").fadeOut(2000);
  
  });
  </code></pre>
  
  <p>with no success.. I have included the javascript file</p>
  
  <pre><code>&lt;%= javascript_include_tag 'jquery-1.3.2' %&gt;
  </code></pre>