app/controllers/astrochimp/signups_controller.rb in astrochimp-0.1.3 vs app/controllers/astrochimp/signups_controller.rb in astrochimp-0.2.0
- old
+ new
@@ -33,9 +33,10 @@
@signup.save
if @signup.errors.any?
format.html { render action: :index }
format.json { render json: @signup.errors, status: :unprocessable_entity }
else
+ SignupMailer.signup_complete(@signup).deliver
format.html do
redirect_to @signup, notice: ENV['AC_SIGNUP_SUCCESS_NOTICE']
end
format.json { render json: @signup, status: :created, location: @signup }
end