Sha256: 9af4665c5c2012c40bcabd9b7d10ea384a13978c311cc89779748e3a2e7c77f3

Contents?: true

Size: 684 Bytes

Versions: 5

Compression:

Stored size: 684 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_field :body %>
  </div>
  <div class="field">
    <%= f.label :author %><br>
    <%= f.text_field :author %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubybench_runner-0.1.4 lib/rubybench_runner/rails/benchmarks/views/posts/_form.html.erb
rubybench_runner-0.1.3 lib/rubybench_runner/rails/benchmarks/views/posts/_form.html.erb
rubybench_runner-0.1.2 lib/rubybench_runner/rails/benchmarks/views/posts/_form.html.erb
rubybench_runner-0.1.1 lib/rubybench_runner/rails/benchmarks/views/posts/_form.html.erb
rubybench_runner-0.1.0 lib/rubybench_runner/rails/benchmarks/views/posts/_form.html.erb