]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/message/new.html.erb
Merge changeset browser branch to trunk.
[rails.git] / app / views / message / new.html.erb
index a356692c8f000e3973c1a7890a74e1ac94bcb830..9ae756f833d6daa5f22d5420112bd6e9cf47a5fe 100644 (file)
@@ -2,11 +2,11 @@
 
 <%= error_messages_for 'message' %>
 
-<% form_for :message, :url => { :action => "new", :user_id => @to_user.id } do |f| %>
+<% form_for :message, :url => { :action => "new", :display_name => @to_user.display_name } do |f| %>
   <table>
     <tr valign="top">
       <th><%= t'message.new.subject' %></th>
-      <td><%= f.text_field :title, :size => 60, :value => @title %></td>
+      <td><%= f.text_field :title, :size => 60, :value => @subject %></td>
     </tr>
     <tr valign="top">
       <th><%= t'message.new.body' %></th>