Sha256: 3bb3e41e8219b62167a17f543389e72d717e868798540627bbed21b381fc3d0a

Contents?: true

Size: 494 Bytes

Versions: 47

Compression:

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

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
chili-4.0.1 spec/example_app/app/views/posts/_form.html.erb
chili-4.0.0 spec/example_app/app/views/posts/_form.html.erb
chili-3.1.1 spec/example_app/app/views/posts/_form.html.erb
spring-0.0.10 test/apps/rails-3-2/app/views/posts/_form.html.erb
spring-0.0.9 test/apps/rails-3-2/app/views/posts/_form.html.erb
dailycred-0.1.7 dummy/app/views/posts/_form.html.erb
chili-3.1.0 spec/example_app/app/views/posts/_form.html.erb
spring-0.0.8 test/apps/rails-3-2/app/views/posts/_form.html.erb
dailycred-0.1.6 dummy/app/views/posts/_form.html.erb
spring-0.0.7 test/apps/rails-3-2/app/views/posts/_form.html.erb
spring-0.0.6 test/apps/rails-3-2/app/views/posts/_form.html.erb
tinted_tags-0.0.2 spec/dummy/app/views/posts/_form.html.erb
spring-0.0.5 test/apps/rails-3-2/app/views/posts/_form.html.erb
spring-0.0.4 test/apps/rails-3-2/app/views/posts/_form.html.erb
spring-0.0.3 test/apps/rails-3-2/app/views/posts/_form.html.erb
spring-0.0.2 test/apps/rails-3-2/app/views/posts/_form.html.erb
spring-0.0.1 test/apps/rails-3-2/app/views/posts/_form.html.erb
dailycred-0.1.5 dummy/app/views/posts/_form.html.erb
dailycred-0.1.461 dummy/app/views/posts/_form.html.erb
dailycred-0.1.46 dummy/app/views/posts/_form.html.erb