comparison 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
comparison
equal deleted inserted replaced
264:fa4a1ba990ae 265:6cca1ab53337
1 <% provide :title, 'New Paste' %> 1 <% provide :title, 'New Paste' %>
2 2
3 <% if flash[:notice] %> 3 <% if notice %>
4 <div class="alert alert-info"> 4 <div class="alert alert-info">
5 <%= flash[:notice] %> 5 <%= notice %>
6 </div>
7 <% end %>
8
9 <% if alert %>
10 <div class="alert alert-danger">
11 <%= alert %>
6 </div> 12 </div>
7 <% end %> 13 <% end %>
8 14
9 <div class="page-header"> 15 <div class="page-header">
10 <h1>New Paste</h1> 16 <h1>New Paste</h1>