Sha256: 7d315e71613b0292d93a7599b4e9f1bfbf94dbab12988577f276755408498752
Contents?: true
Size: 720 Bytes
Versions: 27
Compression:
Stored size: 720 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 %> </div> <div class="field"> <%= form.label :body %> <%= form.text_area :body %> </div> <div class="field"> <%= form.label :published %> <%= form.check_box :published %> </div> <div class="actions"> <%= form.submit %> </div> <% end %>
Version data entries
27 entries across 27 versions & 1 rubygems