This has to be simple but I am not able to figure it out.
I only want the :notice data (and
tags) to show up in the
application layout if there is a notice.
The code below works if there is not a :notice (nothing shows up in
code) but gives an error if there is a notice. The error is “undefined
<% if flash[:notice] :exists? %>
<%= flash[:notice] %><% end %>