drhenner/ror_ecommerce

View on GitHub
app/views/admin/fulfillment/comments/_form.html.erb

Summary

Maintainability
Test Coverage
<% if @comment.errors.any? %>
  <div id="error_explanation">
    <h2><%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:</h2>

    <ul>
    <% @comment.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
<% end %>

<div class="field">
  <%= f.label :note %><br />
  <%= f.text_field :note %>
</div>
<div class="actions">
  <%= f.submit %>
</div>