From 338d788b5ae48f6a8de344f4c67f1c89a2701fb9 Mon Sep 17 00:00:00 2001 From: Luke Barratt Date: Wed, 30 Apr 2014 00:50:27 +0100 Subject: [PATCH] Correct error messages for PMs --- app/views/messages/new.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb index 392f0bd..d614b34 100644 --- a/app/views/messages/new.html.erb +++ b/app/views/messages/new.html.erb @@ -2,7 +2,8 @@

New Message

<%= form_for(@message, html: { class: 'square' }) do |f| %> - <%= f.error_messages %> + <%= render 'shared/errors', messages: @message.errors.full_messages %> + <%= f.hidden_field :recipient_id %> <%= f.hidden_field :recipient_type %>