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">
|
35
|
15 <%= f.text_area :paste, :class => 'span12', :rows => 10 %>
|
2
|
16 </div>
|
29
|
17 <div class="form-actions">
|
|
18 <%= f.submit :class => 'btn btn-primary' %>
|
39
|
19 <%= link_to 'Clear', root_path, :class => 'btn', :id => 'reset_paste' %>
|
2
|
20 </div>
|
|
21 <% end %>
|