Mercurial > zeropaste
view app/views/pastes/_form.html.erb @ 3:04a43fae272c
Better styled paste show.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 26 Aug 2012 11:29:31 -0700 |
parents | 42de15334db1 |
children | faf30647205e |
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.label :paste %><br /> <%= f.text_area :paste %> </div> <div class="actions"> <%= f.submit %> </div> <% end %>