Is it bad to do return render? I am doing this to NOT also allow a redirect.
def create
@patient = Patient.new(params[:patient])
if [email protected]
@patient.user.password = ''
@patient.user.password_confirmation = ''
return render is_admin? ? 'new_admin' : 'new'
else
#Fire off an e-mail
PatientMailer.welcome_email(@patient).deliver
end
if current_user == @patient
sign_in @patient
else
redirect_to patients_path
end
end