Sha256: 54e912d4dce82fa1e3bfcb0325181632e078a2af88953a18128713cab4bc98e9

Contents?: true

Size: 581 Bytes

Versions: 6

Compression:

Stored size: 581 Bytes

Contents

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

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

  <div class="field">
    <%= f.label :title %><br>
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :body %><br>
    <%= f.text_area :body %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
app_monit_rails-0.1.0 spec/dummy/app/views/posts/_form.html.erb
app_monit_rails-0.0.6 spec/dummy/app/views/posts/_form.html.erb
app_monit_rails-0.0.5 spec/dummy/app/views/posts/_form.html.erb
app_monit_rails-0.0.4 spec/dummy/app/views/posts/_form.html.erb
app_monit_rails-0.0.3 spec/dummy/app/views/posts/_form.html.erb
app_monit_rails-0.0.1 spec/dummy/app/views/posts/_form.html.erb