Show the NeoPass testing form link to 25% of users on the homepage

It's happening! 
This commit is contained in:
Emi Matchu 2024-04-11 07:29:01 -07:00
parent 644b181ed0
commit eb8e5d6df5
2 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,9 @@ class OutfitsController < ApplicationController
end
def new
session[:neopass_test_group] ||= rand(0..99)
@neopass_test_group = session[:neopass_test_group]
@colors = Color.funny.alphabetical
@species = Species.alphabetical

View File

@ -18,6 +18,12 @@
%br
= link_to "Here's what's coming and why.", about_neopass_path
- if @neopass_test_group < 25
%p
%strong ➡️ We're starting limited testing today!
= link_to "Here's the secret info if you'd like to take a look!",
"https://forms.gle/hEkw5bXY1W4YhUZb7"
#outfit-forms
- localized_cache :action_suffix => 'outfit_forms_intro' do
#pet-preview