Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Redirect new applicants to thank you page
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Apr 18, 2014
1 parent 1bf1110 commit 55ee693
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/controllers/applicants_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ def create
begin
@applicant.send_emails
rescue
redirect_to @applicant,
# TODO: Add url
notice: 'The application was saved but the emails failed to send. Save this URL and contact the ASC for assistance'
redirect_to thankyou_path,
notice: 'The application was saved but the emails failed to send. Contact the ASC for assistance'
else
redirect_to @applicant, notice: 'The application was saved succesfully'
redirect_to thankyou_path, notice: 'The application was saved succesfully'
end
else
render action: 'new'
Expand Down
2 changes: 2 additions & 0 deletions app/views/staticpages/thanks.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<p id="notice"><%= notice %></p>
<br>
<p>Thank you for applying to be an ASC student tutor. Check your email for the URL where you can edit or view your application. You will be contacted by the ASC when your application has been processed.</p>

0 comments on commit 55ee693

Please sign in to comment.