Sha256: 033deaa9d3612af29dc3b9c2e8344f53e8c814c057fbe6c26bf022541fca6f86

Contents?: true

Size: 701 Bytes

Versions: 2

Compression:

Stored size: 701 Bytes

Contents

<%= form_with(model: article, local: true) do |form| %>
  <% if article.errors.any? %>
    <header>
      <h4><%= pluralize(article.errors.count, "error") %> prohibited this article from being saved:</h4>

      <ul>
        <% article.errors.full_messages.each do |message| %>
          <li><%= message %></li>
        <% end %>
      </ul>
    </header>
  <% end %>

  <%= form.label :title %>
  <%= form.text_field :title, required: true %>

  <%= form.label :text %>
  <%= form.text_area :text, required: true %>

  <%= form.label :publish_at %>
  <%= form.date_field :publish_at %>

  <button type="submit">Save</button>

  <%= link_to articles_path do %>
    <em>Back</em>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bongo-0.0.2 app/views/bongo/articles/_form.html.erb
bongo-0.0.1 app/views/bongo/articles/_form.html.erb