(Wed. June 8th 2o11, 11:00 pm)
For self -hiding Ruby on Rails 3 flash messages you can use the following in a partial which can be included within application layouts. (requires you are using jQuery)
<br /><div id="flash-banner"><br /><br /> "flash " + key.to_s, :id => key.to_s + "-message" %><br /> "text/javascript" do %><br />$('#').css('display', 'none');<br />$('#').slideDown().delay(1000).slideUp();<br /><br /><br /></div><br />
Published by