Sha256: 8cc7476fbd38031a54b24f6c7d0c1f9bba629038694522512535f7fa0a7b466d

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 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 :desc %><br />
    <%= f.text_field :desc %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
feedable-0.9.3 test/dummy/app/views/posts/_form.html.erb
feedable-0.9.2 test/dummy/app/views/posts/_form.html.erb
feedable-0.9.1 test/dummy/app/views/posts/_form.html.erb
feedable-0.9.0 test/dummy/app/views/posts/_form.html.erb