Update appointments_controller.rb