Sha256: 48052d511321c4cd9d5b177823f82e9ee50921ac8c5aae1dff7153278fbbd11e

Contents?: true

Size: 743 Bytes

Versions: 2

Compression:

Stored size: 743 Bytes

Contents

<%= form_for(@error_duplicator) do |f| %>
  <% if @error_duplicator.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@error_duplicator.errors.count, "error") %> prohibited this error_duplicator from being saved:</h2>

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

  <div class="field">
    <%= f.label :subject %><br>
    <%= f.text_area :subject %>
  </div>
  <div class="field">
    <%= f.label :body %><br>
    <%= f.text_area :body %>
  </div>
  <div class="field">
    <%= f.label :published %><br>
    <%= f.check_box :published %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-prg-0.1.1 spec/dummy/app/views/error_duplicators/_form.html.erb
rails-prg-0.1.0 spec/dummy/app/views/error_duplicators/_form.html.erb