Created
March 6, 2014 08:19
-
-
Save hachy/9384754 to your computer and use it in GitHub Desktop.
RailsのflashとBootstrapを組み合わせる。Ruby on Railsチュートリアル参考 -> http://railstutorial.jp/book/ruby-on-rails-tutorial?version=4.0#sec-the_flash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- flash.each do |key, value| | |
%div{class: "alert alert-#{key} alert-dismissable"} | |
= value | |
%button.close(type="button" data-dismiss="alert" aria-hidden="true") | |
× |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment