Set session variable after_create_account #325
learn-ai763
started this conversation in
General
Replies: 1 comment 1 reply
-
If you have autologin enabled on account creation (true if you have One way to work around this is to hook onto something that's run after autologin, such as create_account_response do
session[:current_company_id] = 11
super()
end |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm wondering how can I set session variable in
after_create_account
hookThe problem is, when the user signs up and get redirected to the root_url the session variable is not set. Even though the block is definitely evaluated
Beta Was this translation helpful? Give feedback.
All reactions