Sha256: f5e00ad89d29cce12c4c131e218daaa7d9d6d1372dc76196ae4e224b50788659

Contents?: true

Size: 595 Bytes

Versions: 4

Compression:

Stored size: 595 Bytes

Contents

<%= form_for([:admin, @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 :body %><br />
    <%= f.text_area :body %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-otp-1.0.0 test/dummy/app/views/admin_posts/_form.html.erb
devise-otp-0.8.0 test/dummy/app/views/admin_posts/_form.html.erb
devise-otp-0.7.1 test/dummy/app/views/admin_posts/_form.html.erb
devise-otp-0.7.0 test/dummy/app/views/admin_posts/_form.html.erb