go to part...
Oftentimes you want to show your user a notification for a short period of time after they've performed a certain action. Some people call these "flash messages". This is what we'll be working on in this tutorial.
You will be able to flash a notification from your controller, as well as display notifications dynamically via JavaScript. The notification will stay visible for 5 seconds and then disappear. You can also close it manually before that happens by clicking anywhere on the notification. It will be styled with Twitter Bootstrap, but you can apply your own styling as you wish.