<%= form_for(@private_message) do |f| %> <% if @private_message.errors.any? %>

<%= pluralize(@private_message.errors.count, "error") %> prohibited this private_message from being saved:

<% end %> <%= f.hidden_field :sender_id %> <%= f.hidden_field :receiver_id %>
<%= f.label :text %>
<%= f.text_area :text %>
<%= f.submit %>
<% end %>