Skip to content Skip to sidebar Skip to footer

Best Way To Display Flash Notices In Rails

I'm using notices in Rails and Devise and wondered what's the best way to display them? In my application I also have it so when a user saves a post, it saves it using Ajax and I u

Solution 1:

I would hide the notice by default. Then call

$('#notice').html("Saved.").slideDown(500).delay(3000).slideUp(500)

You can adjust the numbers in the jQuery methods to however you want to time the animations.


Post a Comment for "Best Way To Display Flash Notices In Rails"