Skip to content

Instantly share code, notes, and snippets.

@pvgdevelop
Created April 24, 2016 19:42
Show Gist options
  • Save pvgdevelop/aadc631f8f14aa19a60aee83e5e3301c to your computer and use it in GitHub Desktop.
Save pvgdevelop/aadc631f8f14aa19a60aee83e5e3301c to your computer and use it in GitHub Desktop.
Rail flash messages box styled for Zurb Foundation 6
-# Rails flash messages styled for Zurb Foundation 6
- flash.each do |name, msg|
- if msg.is_a?(String)
%div{:class => "callout #{name.to_s == 'notice' ? 'success' : 'alert'}", "data-alert" => ""}
%button.close-button{"aria-label" => "Close alert", :type => "button"}
%span{"aria-hidden" => "true"} ×
= content_tag :p, msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment