%= form_for(@pm) do |f| %>
<% if @pm.errors.any? %>
<%= pluralize(@pm.errors.count, "error") %> prohibited this pm from being saved:
<% @pm.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :author_id %>
<%= f.text_field :author_id %>
<%= f.label :recipient_id %>
<%= f.text_field :recipient_id %>
<%= f.label :message %>
<%= f.text_area :message %>
<%= f.submit %>
<% end %>