Sha256: 21cb672eccfee91ddc053ac385413f9630ab45081d5b87ad2508b4fe1a641d11

Contents?: true

Size: 591 Bytes

Versions: 34

Compression:

Stored size: 591 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="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
ab_panel-0.4.4 example/app/views/posts/_form.html.erb
ab_panel-0.4.3 example/app/views/posts/_form.html.erb
ab_panel-0.4.2 example/app/views/posts/_form.html.erb
ab_panel-0.4.1 example/app/views/posts/_form.html.erb
ab_panel-0.4.0 example/app/views/posts/_form.html.erb
ab_panel-0.3.3 example/app/views/posts/_form.html.erb
ab_panel-0.3.2 example/app/views/posts/_form.html.erb
ab_panel-0.3.1 example/app/views/posts/_form.html.erb
google_authentication-0.3.0 spec/dummy/app/views/posts/_form.html.erb
ab_panel-0.3.0 example/app/views/posts/_form.html.erb
ab_panel-0.2.0 example/app/views/posts/_form.html.erb
ab_panel-0.1.3 example/app/views/posts/_form.html.erb
ab_panel-0.1.2 example/app/views/posts/_form.html.erb
ab_panel-0.1.1 example/app/views/posts/_form.html.erb
ab_panel-0.1.0 example/app/views/posts/_form.html.erb
ab_panel-0.0.9 example/app/views/posts/_form.html.erb
ab_panel-0.0.8 example/app/views/posts/_form.html.erb
ab_panel-0.0.7 example/app/views/posts/_form.html.erb
ab_panel-0.0.6 example/app/views/posts/_form.html.erb
ab_panel-0.0.5 example/app/views/posts/_form.html.erb