Sha256: 0531b38325fd6b11d456dd6b1c03edef14d92f45706d5dce3ec8c65f90e16670

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

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

      <ul>
      <% @example_prg.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/example_prgs/_form.html.erb
rails-prg-0.1.0 spec/dummy/app/views/example_prgs/_form.html.erb