Sha256: 1a99e3dfed1252c0752aa7fb4378902083960d5f0e432cda44f207005735bada

Contents?: true

Size: 610 Bytes

Versions: 55

Compression:

Stored size: 610 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 |message| %>
        <li><%= message %></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

55 entries across 55 versions & 2 rubygems

Version Path
adeia-0.7.0 spec/test_app/app/views/articles/_form.html.erb
adeia-0.6.2 spec/test_app/app/views/articles/_form.html.erb
adeia-0.6.1 spec/test_app/app/views/articles/_form.html.erb
adeia-0.6.0 spec/test_app/app/views/articles/_form.html.erb
adeia-0.5.6 spec/test_app/app/views/articles/_form.html.erb
adeia-0.5.5 spec/test_app/app/views/articles/_form.html.erb
adeia-0.5.4 spec/test_app/app/views/articles/_form.html.erb
adeia-0.5.3 spec/test_app/app/views/articles/_form.html.erb
adeia-0.5.2 spec/test_app/app/views/articles/_form.html.erb
adeia-0.5.1 spec/test_app/app/views/articles/_form.html.erb
adeia-0.5.0 spec/test_app/app/views/articles/_form.html.erb
adeia-0.4.0 spec/test_app/app/views/articles/_form.html.erb
adeia-0.3.0 spec/test_app/app/views/articles/_form.html.erb
adeia-0.2.0 spec/test_app/app/views/articles/_form.html.erb
adeia-0.1.0 test/dummy/app/views/articles/_form.html.erb