Mercurial > zeropaste
annotate app/views/pastes/_form.html.erb @ 24:a8cdf1f45446
Add newline/eol before hashing the paste.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Wed, 05 Sep 2012 14:47:35 +0700 |
parents | 42de15334db1 |
children | faf30647205e |
rev | line source |
---|---|
2 | 1 <%= form_for(@paste) do |f| %> |
2 <% if @paste.errors.any? %> | |
3 <div id="error_explanation"> | |
4 <h2><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h2> | |
5 | |
6 <ul> | |
7 <% @paste.errors.full_messages.each do |msg| %> | |
8 <li><%= msg %></li> | |
9 <% end %> | |
10 </ul> | |
11 </div> | |
12 <% end %> | |
13 | |
14 <div class="field"> | |
15 <%= f.label :paste %><br /> | |
16 <%= f.text_area :paste %> | |
17 </div> | |
18 <div class="actions"> | |
19 <%= f.submit %> | |
20 </div> | |
21 <% end %> |