Here I show how to add an announcement message at the top of every page in the application and allow the user to permanently hide it. This is all done test-first and even includes testing the JavaScript behavior. (11 minutes) If you found this helpful, please consider purchasing RailsCasts Pro.