From 39a466e92c8a082d26a9da9233fb58724e785ed7 Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Mon, 3 Jun 2013 16:38:24 +0200 Subject: [PATCH] display-activation-link Approximately 99% of you following this tutorial will not have set up email correctly. So how do you sign up? One option is to cut and paste out of your log files. However, we'll be doing some integration testing later, so we do need something a little more convenient. Just make sure that you revert this change before you go to production! SHOW_PATCH --- app/controllers/users_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index bc01119..4052c0d 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -21,6 +21,11 @@ def do_signup hobo_do_signup do if this.errors.blank? flash[:notice] << "You must activate your account before you can log in. Please check your email." + + # FIXME: remove these two lines after you get email working reliably + # and before your application leaves its sandbox... + secret_path = user_activate_path :id=>this.id, :key => this.lifecycle.key + flash[:notice] = "Thanks for signing up! The 'secret' link that was just emailed was: #{secret_path}.".html_safe end end end