Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Site-Wide Announcements (revised)

#103 Site-Wide Announcements (revised)

Nov 12, 2012 | 11 minutes | Active Record, Testing, Ajax
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.
  • Download:
  • source codeProject Files in Zip (60.5 KB)
  • mp4Full Size H.264 Video (24.2 MB)
  • m4vSmaller H.264 Video (13.2 MB)
  • webmFull Size VP8 Video (15.5 MB)
  • ogvFull Size Theora Video (30.7 MB)