Sha256: 685967fc50e293d88ab25109c0e090481b14395e74d423cf2b2f0378bcdf30b2

Contents?: true

Size: 660 Bytes

Versions: 21

Compression:

Stored size: 660 Bytes

Contents

<%= form_with(model: post, local: true) do |form| %>
  <% 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 |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= form.label :title %>
    <%= form.text_field :title, id: :post_title %>
  </div>

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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
live_record-1.0.2 spec/internal/app/views/posts/_form.html.erb
live_record-1.0.1 spec/internal/app/views/posts/_form.html.erb
live_record-1.0.0 spec/internal/app/views/posts/_form.html.erb
live_record-0.3.6 spec/internal/app/views/posts/_form.html.erb
live_record-0.3.4 spec/internal/app/views/posts/_form.html.erb
live_record-0.3.3 spec/internal/app/views/posts/_form.html.erb
live_record-0.3.2 spec/internal/app/views/posts/_form.html.erb
live_record-0.3.1 spec/internal/app/views/posts/_form.html.erb
live_record-0.3.0 spec/internal/app/views/posts/_form.html.erb
live_record-0.2.8 spec/internal/app/views/posts/_form.html.erb
live_record-0.2.7 spec/internal/app/views/posts/_form.html.erb
live_record-0.2.6 spec/internal/app/views/posts/_form.html.erb
live_record-0.2.5 spec/internal/app/views/posts/_form.html.erb
live_record-0.2.4 spec/internal/app/views/posts/_form.html.erb
live_record-0.2.3 spec/internal/app/views/posts/_form.html.erb
live_record-0.2.2 spec/internal/app/views/posts/_form.html.erb
live_record-0.2.1 spec/internal/app/views/posts/_form.html.erb
live_record-0.2.0 spec/internal/app/views/posts/_form.html.erb
live_record-0.1.2 lib/live_record/spec/internal/app/views/posts/_form.html.erb
live_record-0.1.1 lib/live_record/spec/internal/app/views/posts/_form.html.erb