Sha256: 4b429cd41ef89006bb71e4fa07261f73d345c0b368e5b29873ed2086c9388416

Contents?: true

Size: 672 Bytes

Versions: 183

Compression:

Stored size: 672 Bytes

Contents

<%= form_with(model: article, local: true) do |form| %>
  <% 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">
    <%= form.label :title %>
    <%= form.text_field :title, id: :article_title %>
  </div>

  <div class="field">
    <%= form.label :text %>
    <%= form.text_area :text, id: :article_text %>
  </div>

  <div class="actions">
    <%= form.submit %>
  </div>
<% end %>

Version data entries

183 entries across 183 versions & 1 rubygems

Version Path
ishapi-0.1.2 app/views/ishapi/articles/_form.html.erb
ishapi-0.1.1 app/views/ishapi/articles/_form.html.erb
ishapi-0.1.0 app/views/ishapi/articles/_form.html.erb