diff app/views/pastes/_form.html.erb @ 56:8ef70e8c239d

Bootstrap-styled error message.
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 05:04:30 +0700
parents a930c717654c
children b4b7a29b70f6
line wrap: on
line diff
--- a/app/views/pastes/_form.html.erb	Thu Oct 04 04:50:22 2012 +0700
+++ b/app/views/pastes/_form.html.erb	Thu Oct 04 05:04:30 2012 +0700
@@ -1,7 +1,7 @@
 <%= form_for(@paste) do |f| %>
   <% if @paste.errors.any? %>
-    <div id="error_explanation">
-      <h2><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h2>
+    <div class="alert alert-error" id="error_explanation">
+      <h5><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h5>
 
       <ul>
       <% @paste.errors.full_messages.each do |msg| %>