Update emails_controller.rb