From ecb20668ce67e456bd59ad6a810de9c2ad569757 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Fri, 24 Jul 2015 00:33:04 -0500 Subject: [PATCH] SignupController: add an explicit action for invite --- app/controllers/signup_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/signup_controller.rb b/app/controllers/signup_controller.rb index 400d163..563ec4b 100644 --- a/app/controllers/signup_controller.rb +++ b/app/controllers/signup_controller.rb @@ -10,6 +10,10 @@ class SignupController < ApplicationController @title = "Signup" end + def invite + @title = "Pass Along an Invitation" + end + def invited if @user flash[:error] = "You are already signed up." @@ -55,7 +59,6 @@ class SignupController < ApplicationController end private - def user_params params.require(:user).permit( :username, :email, :password, :password_confirmation, :about,