1 <% display_name = (User.find_by_id(params[:user_id])).display_name %>
3 <h2>Send a new message to <%= display_name %></h2>
5 <% if params[:display_name] %>
6 <p>Writing a new message to <%= h(params[:display_name]) %></p>
7 <p>TODO: drop down box of your friends</p>
10 <%= error_messages_for 'message' %>
12 <% form_for :message do |f| %>
16 <td><%= f.text_field :title, :size => 60 %></td>
20 <td><%= f.text_area :body, :cols => 80 %></td>
24 <td><%= submit_tag 'Send' %></td>
31 <%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>