<%= error_messages_for 'diary_entry' %>
-<%= start_form_tag :controller => 'diary_entry', :action => 'new' %>
+<% form_tag :controller => 'diary_entry', :action => 'new' do %>
subject<%= text_field 'diary_entry', 'title' %><br>
body<%= text_area 'diary_entry', 'body' %><br>
<%= submit_tag 'Save' %>
-<% end_form_tag %>
+<% end %>