Helper method flash_class created to do away with code duplication for notices in file application.html.erb.