Mercurial > zeropaste
view 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 |
line wrap: on
line source
<%= form_for(@paste) do |f| %> <% if @paste.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@paste.errors.count, "error") %> prohibited this paste from being saved:</h2> <ul> <% @paste.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.text_area :paste, :class => 'span12' %> </div> <div class="actions"> <%= f.submit :class => 'btn' %> </div> <% end %>