]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/messages/new.html.erb
Replace conditional comments with browser detection
[rails.git] / app / views / messages / new.html.erb
index e33bc176d107427b31678f9fbe2602111348a119..2c008732c1eb389b411c6df0c3e8e7f3b00631d1 100644 (file)
@@ -4,7 +4,8 @@
 
 <%= 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 %>
   <fieldset>
     <div class='form-row'>
       <label class="standard-label" for="message_title"><%= t '.subject' %></label>