Answer the question
In order to leave comments, you need to log in
How to make a redirect after the completion of the execution of the thread (Thread.new)?
Used Thread.new, how to make a redirect after running a task in the background?
Thread.new do
task
sleep 1
redirect_to :root
end
writes "Redirected to" in the console and that's it, nothing happens! how to be?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question