Sha256: 3ded28a078d2fc525cd50f5ded26484a192cbfe0c635ff396153924312f26ee8

Contents?: true

Size: 766 Bytes

Versions: 3

Compression:

Stored size: 766 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, cols: 120, rows: 50 %>
  </div>

  <div class="field">
    <%= f.label :all_tags %><br>
    <%= f.text_field :all_tags, placeholder: "Tags separated with commas", size: 30 %>
  </div>
  
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
personal_blog-0.0.3 app/views/personal_blog/posts/_form.html.erb
personal_blog-0.0.2 app/views/personal_blog/posts/_form.html.erb
personal_blog-0.0.1 app/views/personal_blog/posts/_form.html.erb