Created
December 14, 2012 14:03
-
-
Save ozgun/4285668 to your computer and use it in GitHub Desktop.
Flash mesajlarının partial'da yazdırılması.
This file contains hidden or 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
| <%# partial'ın adı "_flash.html_erb" OLAMAMALI!!!!! %> | |
| <% unless flash.empty? %> | |
| <div class="flash"> | |
| <% flash.each do |k, v| %> | |
| <%= content_tag :div, v, class: k.to_s %> | |
| <% end %> | |
| </div> | |
| <% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment