Mercurial > zeropaste
annotate app/views/pastes/_form.html.erb @ 27:108e8d6fd0d5
Added copyright notice.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 10 Sep 2012 03:53:15 +0700 |
parents | faf30647205e |
children | 7746fd53bd9c |
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"> | |
25 | 15 <%= f.text_area :paste, :class => 'span12' %> |
2 | 16 </div> |
17 <div class="actions"> | |
25 | 18 <%= f.submit :class => 'btn' %> |
2 | 19 </div> |
20 <% end %> |