A simple code snippet for displaying your flash[:warning] = "Warning Message" messages in rails.
Add the following to your application_helper.rb.
To show all messages place this code in your view (rhtml).
Also here’s some CSS to style the messages.