%= error_messages_for 'diary_entry' %> <%= start_form_tag :controller => 'diary_entry', :action => 'new' %> subject<%= text_field 'diary_entry', 'title' %> body<%= text_area 'diary_entry', 'body' %> <%= submit_tag 'Save' %> <% end_form_tag %>