-<% form_tag :controller => 'message', :action => 'new' do %>
-subject: <%= text_field 'message', 'title' %><br>
-body: <%= text_area 'message', 'body' %><br>
- <%= submit_tag 'Send' %>
+<% form_for :message, :url => {:user_id => params[:user_id] || @user_id, :action => "new" } do |f| %>
+ <table>
+ <tr valign="top">
+ <th>Subject</th>
+ <td><%= text_field_tag 'message[title]', title, :size => 60, :value => @title %></td>
+ </tr>
+ <tr valign="top">
+ <th>Body</th>
+ <td><%= f.text_area :body, :cols => 80, :value => @body %></td>
+ </tr>
+ <tr>
+ <th></th>
+ <td><%= submit_tag 'Send', :action => 'new' %></td>
+ </tr>
+ </table>