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