%= form_with(model: message, local: true) do |form| %>
<% if message.errors.any? %>
<%= pluralize(message.errors.count, "error") %> prohibited this message from being saved:
<% message.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= form.label :subject %>
<%= form.text_field :subject %>
<%= form.label :content %>
<%= form.rich_text_area :content, class: "trix-content" %>
<%= form.submit %>
<% end %>