How do I see / change session data from within a thread within rails? See this code snippet inside my controller:
def controller_action
session[:something] = 'before' # works properly
Thread.new do
session[:something] = 'after' # out of scope. <--- how do I fix this?
end
end
(related to this question, but much more specific. I expect quite different answers.)