Mercurial > zeropaste
annotate app/views/pastes/_form.html.erb @ 8:418105d973f1
Simplified routes.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 26 Aug 2012 11:49:54 -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 %> |