I have a form and a model with some validation.
When I just click an empty form (or fill in a few fields) I do get my
validation error no problem.
However, if I click the link at the top of the page that just takes me
to the same
page without any post etc,
The Flash error still displays in my layout.
This is what I have code wise
<% unless flash[:error].blank? -%>
<div class="flash_error"><%= flash[:error] %></div>
<div class="clear"> </div>
<% end -%>
Thanks in advance.