Sha256: 67073497de7e745b195458af7273ca5e3eafff5e43ef55d1e42b26565b8eb916

Contents?: true

Size: 604 Bytes

Versions: 9

Compression:

Stored size: 604 Bytes

Contents

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

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

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>

  <div class="field">
    <%= f.label :has_warning %><br />
    <%= f.check_box :has_warning %>
  </div>

  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ominous-0.1.3 test/dummy/app/views/things/_form.html.erb
ominous-0.1.2 test/dummy/app/views/things/_form.html.erb
ominous-0.1.1 test/dummy/app/views/things/_form.html.erb
ominous-0.1.0 test/dummy/app/views/things/_form.html.erb
ominous-0.0.5 test/dummy/app/views/things/_form.html.erb
ominous-0.0.4 test/dummy/app/views/things/_form.html.erb
ominous-0.0.3 test/dummy/app/views/things/_form.html.erb
ominous-0.0.2 test/dummy/app/views/things/_form.html.erb
ominous-0.0.1 test/dummy/app/views/things/_form.html.erb