Sha256: fb2702cfc3409f734c60e12e022768b42eb6e21179c2898f2726c4b3e6ecbc1d

Contents?: true

Size: 712 Bytes

Versions: 4

Compression:

Stored size: 712 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="field">
    <%= f.label :tags %><br>
    <%= f.collection_check_boxes :tags, @tags, :to_s, :to_s %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
groonga-client-rails-0.9.7 test/apps/rails4-mongoid/app/views/posts/_form.html.erb
groonga-client-rails-0.9.6 test/apps/rails4-mongoid/app/views/posts/_form.html.erb
groonga-client-rails-0.9.5 test/apps/rails4-mongoid/app/views/posts/_form.html.erb
groonga-client-rails-0.9.4 test/apps/rails4-mongoid/app/views/posts/_form.html.erb