diff app/views/pastes/new.html.erb @ 265:6cca1ab53337

Infinitely better error messages and notice.
author edogawaconan <me@myconan.net>
date Wed, 16 Oct 2013 02:56:30 +0900
parents d4682cea8e58
children 7f1eac4a7fa9
line wrap: on
line diff
--- a/app/views/pastes/new.html.erb	Wed Oct 16 02:19:36 2013 +0900
+++ b/app/views/pastes/new.html.erb	Wed Oct 16 02:56:30 2013 +0900
@@ -1,8 +1,14 @@
 <% provide :title, 'New Paste' %>
 
-<% if flash[:notice] %>
+<% if notice %>
   <div class="alert alert-info">
-    <%= flash[:notice] %>
+    <%= notice %>
+  </div>
+<% end %>
+
+<% if alert %>
+  <div class="alert alert-danger">
+    <%= alert %>
   </div>
 <% end %>