<%= error_messages_for 'diary_entry' %>
-<%= start_form_tag :controller => 'diary_entry', :action => 'new' %>
-subject<%= text_field 'diary_entry', 'title' %><br>
-body<%= text_area 'diary_entry', 'body' %><br>
- <%= submit_tag 'Save' %>
-<% end_form_tag %>
+<% form_for :diary_entry do |f| %>
+ <table>
+ <tr valign="top">
+ <th>Subject</th>
+ <td><%= f.text_field :title, :size => 60 %></td>
+ </tr>
+ <tr valign="top">
+ <th>Body</th>
+ <td><%= f.text_area :body, :cols => 80 %></td>
+ </tr>
+ <tr>
+ <th></th>
+ <td><%= submit_tag 'Save' %></td>
+ </tr>
+ </table>
+<% end %>