Mercurial > zeropaste
view app/views/pastes/_form.html.erb @ 13:33e8202c7e5d
Added example database.yml.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 26 Aug 2012 12:06:48 -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 %>