Display error message from a flash at the top of the page

This commit is contained in:
Alexey Verkhovsky 2005-01-18 00:27:28 +00:00
parent 73552b36a0
commit b9737747f2
2 changed files with 10 additions and 0 deletions

View file

@ -47,6 +47,10 @@
<% end %>
</h1>
<% if @flash[:error] %> <div id="error" class="error">
<hr/><p><%= @flash[:error].to_s %></p><hr/></div>
<% end %>
<%= render 'navigation' unless @web.nil? || @hide_navigation %>
<%= @content_for_layout %>