Sha256: deb848f427daba05c99d86d623640c8b5aaf20923ba853e1d6864fac73ebb3c4

Contents?: true

Size: 677 Bytes

Versions: 4

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 |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 :content %><br />
    <%= f.text_area :content %>
  </div>
  <div class="field">
    <%= f.label :slug %>
    <%= f.text_field :slug %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slug-engine-0.1.0 test/dummy/app/views/posts/_form.html.erb
slug-engine-0.0.3 test/dummy/app/views/posts/_form.html.erb
slug-engine-0.0.2 test/dummy/app/views/posts/_form.html.erb
slug-engine-0.0.1 test/dummy/app/views/posts/_form.html.erb