Sha256: 59a18d6cf044f6cca022bddc93f66b4113eddc28c9f823345a59558a6b4a4c4e

Contents?: true

Size: 589 Bytes

Versions: 13

Compression:

Stored size: 589 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 |message| %>
        <li><%= message %></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

13 entries across 13 versions & 5 rubygems

Version Path
ecm_tags-2.2.1 spec/dummy/app/views/posts/_form.html.erb
ecm_tags-2.2.0 spec/dummy/app/views/posts/_form.html.erb
groonga-client-model-1.0.2 test/apps/rails4/app/views/posts/_form.html.erb
groonga-client-model-1.0.1 test/apps/rails4/app/views/posts/_form.html.erb
groonga-client-model-1.0.0 test/apps/rails4/app/views/posts/_form.html.erb
speed_gun-2.0.1 example/rails/app/views/posts/_form.html.erb
adminish-0.0.1 test/dummy/app/views/posts/_form.html.erb
speed_gun-2.0.0 example/rails/app/views/posts/_form.html.erb
speed_gun-2.0.0.pre.alpha.1 example/rails/app/views/posts/_form.html.erb
groonga-client-rails-0.9.3 test/apps/rails4-mongoid/app/views/posts/_form.html.erb
groonga-client-rails-0.9.2 test/apps/rails4-mongoid/app/views/posts/_form.html.erb
groonga-client-rails-0.9.1 test/apps/rails4-mongoid/app/views/posts/_form.html.erb
groonga-client-rails-0.9.0 test/apps/rails4-mongoid/app/views/posts/_form.html.erb