Sha256: 93971a17cecf8c6f74fcb4844cac514262aac240dfa50b4dcd40d54a2eede512

Contents?: true

Size: 677 Bytes

Versions: 18

Compression:

Stored size: 677 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 %>
    <%= f.text_field :title %>
  </div>

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

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
sapience-0.2.4 test_app/app/views/posts/_form.html.erb
sapience-0.2.3 test_app/app/views/posts/_form.html.erb
sapience-0.2.2 test_app/app/views/posts/_form.html.erb
sapience-0.2.1 test_app/app/views/posts/_form.html.erb
sapience-0.2.0 test_app/app/views/posts/_form.html.erb
sapience-0.1.13 test_app/app/views/posts/_form.html.erb
sapience-0.1.12 test_app/app/views/posts/_form.html.erb
sapience-0.1.11 test_app/app/views/posts/_form.html.erb
sapience-0.1.10 test_app/app/views/posts/_form.html.erb
sapience-0.1.9 test_app/app/views/posts/_form.html.erb
sapience-0.1.8 test_app/app/views/posts/_form.html.erb
sapience-0.1.7 test_app/app/views/posts/_form.html.erb
sapience-0.1.6 test_app/app/views/posts/_form.html.erb
sapience-0.1.5 test_app/app/views/posts/_form.html.erb
sapience-0.1.4 test_app/app/views/posts/_form.html.erb
sapience-0.1.3 test_app/app/views/posts/_form.html.erb
sapience-0.1.2 test_app/app/views/posts/_form.html.erb
sapience-0.1.1 test_app/app/views/posts/_form.html.erb