Sign in through GitHub
watch on iTunes
follow on Twitter
follow on Facebook
subscribe to RSS feed
Browse Episodes
RailsCasts Pro
Notifications
About
Feedback
#18
Looping Through Flash
Apr 13, 2007 | 1 minute |
Views
Displaying flash messages in the layout can be a pain at times. In this episode you will learn an easy way to display any kind of flash message by looping through the hash.
Click to Play Video ▶
Tweet
Download:
mp4
Full Size H.264 Video (3.13 MB)
m4v
Smaller H.264 Video (2.29 MB)
webm
Full Size VP8 Video (5.69 MB)
ogv
Full Size Theora Video (4.26 MB)
Show Notes
ASCIIcast
9 Comments
Similar Episodes
Next Episode >
< Previous Episode
layouts/application.rhtml
<%
flash.each
do
|key, msg|
%>
<%=
content_tag
:div
, msg,
:id
=> key
%>
<%
end
%>