Sha256: e87d6e0f9f3e90b785c0697805c98083c79ec00dc3072bbf14f7f88dbf5e8286

Contents?: true

Size: 693 Bytes

Versions: 6

Compression:

Stored size: 693 Bytes

Contents

<%= form_for(@article) do |f| %>
  <% if @article.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@article.errors.count, "error") %> prohibited this article from being saved:</h2>

      <ul>
      <% @article.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="field">
    <%= f.label :extra %><br />
    <%= f.text_area :extra %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
extend_at-0.2.4 spec/app/app/views/articles/_form.html.erb
extend_at-0.2.3 spec/app/app/views/articles/_form.html.erb
extend_at-0.2.2 spec/app/app/views/articles/_form.html.erb
extend_at-0.2.1 spec/app/app/views/articles/_form.html.erb
extend_at-0.2.0 spec/app/app/views/articles/_form.html.erb
extend_at-0.1.5 spec/app/app/views/articles/_form.html.erb