%= 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.active_text_field :content %>
<%= form.submit %>
<% end %>