Permalink
Browse files

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
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent 576b992 commit 39a466e92c8a082d26a9da9233fb58724e785ed7
Showing with 5 additions and 0 deletions.
  1. +5 −0 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: <a id='activation-link' href='#{secret_path}'>#{secret_path}</a>.".html_safe
end
end
end

0 comments on commit 39a466e

Please sign in to comment.