editing visitors_controller.rb with debug logging