Sha256: 22596f53b66c665e1ed4c731d736dffb99b38cf95da2825c6ba6fdb7c0728ec0

Contents?: true

Size: 608 Bytes

Versions: 29

Compression:

Stored size: 608 Bytes

Contents

<%= form_with(model: post) do |form| %>
  <% if post.errors.any? %>
    <div style="color: red">
      <h2><%= pluralize(post.errors.count, "error") %> prohibited this post from being saved:</h2>

      <ul>
        <% post.errors.each do |error| %>
          <li><%= error.full_message %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div>
    <%= form.label :title, style: "display: block" %>
    <%= form.text_field :title %>
  </div>

  <div>
    <%= form.label :body, style: "display: block" %>
    <%= form.text_area :body %>
  </div>

  <div>
    <%= form.submit %>
  </div>
<% end %>

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
backy_rb-0.1.3 dummy/psql/app/views/posts/_form.html.erb
rails_app_generator-0.3.6 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.3.5 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.3.4 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.3.3 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.3.2 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.3.1 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.3.0 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.43 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.42 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.41 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.40 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.39 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.38 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.37 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.36 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.35 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.34 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.33 after_templates/addons/devise/app/views/posts/_form.html.erb
rails_app_generator-0.2.32 after_templates/addons/devise/app/views/posts/_form.html.erb