blob: 6ead526229f18a4dcb04c6c9ef2d81ec3ca950c8 (
plain) (
tree)
|
|
<%= form_with(model: message, local: true) do |form| %>
<% if message.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(message.errors.count, "error") %> prohibited this message from being saved:</h2>
<ul>
<% message.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= form.label :subject %>
<%= form.text_field :subject %>
</div>
<div class="field">
<%= form.label :content %>
<%= form.active_text_field :content %>
</div>
<div class="actions">
<%= form.submit %>
</div>
<% end %>
|