diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-23 15:04:30 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-23 15:04:35 -0600 |
| commit | 960b65c35d22d3f2fb64d462665ac462282e8622 (patch) | |
| tree | 4818150f6968f0234a7c160bc9f38b731c89aa85 | |
| parent | 4ed17e461986e4777e5b3618c69a543606771808 (diff) | |
add logging
| -rw-r--r-- | app/controllers/sign_ups_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/sign_ups_controller.rb b/app/controllers/sign_ups_controller.rb index 06a0719..a7ed5d3 100644 --- a/app/controllers/sign_ups_controller.rb +++ b/app/controllers/sign_ups_controller.rb @@ -6,10 +6,13 @@ class SignUpsController < ApplicationController def create @sign_up = SignUp.create(sign_up_params) + logger.info("saving new sign up for #{@sign_up.email}") if @sign_up.save + logger.info("attempting to subscribe #{@sign_up.email}") @sign_up.subscribe redirect_to @sign_up else + logger.info("could not save #{@sign_up.email}") render action: "new" end end |
