view app/views/pastes/_form.html.erb @ 24:a8cdf1f45446

Add newline/eol before hashing the paste.
author Edho Arief <edho@myconan.net>
date Wed, 05 Sep 2012 14:47:35 +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 %>