comparison app/views/pastes/_form.html.erb @ 2:42de15334db1

Added the pastes.
author Edho Arief <edho@myconan.net>
date Sun, 26 Aug 2012 11:28:23 -0700
parents
children faf30647205e
comparison
equal deleted inserted replaced
1:49c0949ee47e 2:42de15334db1
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 %>