Thanks @BroiSatse and @Stefan for their comments.
"For every single request the new instance of controller is created, so the instance variable set in one request won't be available on the other. You might won't to create a class variable, but then it will be global to all users. Most likely look into using session to store this data."
guides.rubyonrails.org/action_controller_overview.html#session