X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4df0fe72e28246f81573b98fbf30f13fee16a6b6..1ff7e3ac71f0e31d6c4d26673d6357a76ef957aa:/app/views/messages/new.html.erb
diff --git a/app/views/messages/new.html.erb b/app/views/messages/new.html.erb
index e33bc176d..2429feb52 100644
--- a/app/views/messages/new.html.erb
+++ b/app/views/messages/new.html.erb
@@ -1,22 +1,23 @@
<% content_for :heading do %>
-
<%= raw(t '.send_message_to', :name => link_to(h(@message.recipient.display_name), user_path(@message.recipient))) %>
+ <%= raw(t(".send_message_to", :name => link_to(h(@message.recipient.display_name), user_path(@message.recipient)))) %>
<% end %>
-<%= error_messages_for 'message' %>
+<%= error_messages_for "message" %>
-<%= form_for :message, :html => { :class => 'standard-form' }, :url => new_message_path(@message.recipient) do |f| %>
+<%= form_for @message, :html => { :class => "standard-form" } do |f| %>
+ <%= hidden_field_tag :display_name, @message.recipient.display_name %>
<% end %>