I need to do some image manipulation (that could take long time) after page was generated and sent to the user. Not to make user wait while this job is done. Something like this:
if @post.save!
redirect_to :action => :index
# Now user is redirected and don't need to wait
# doing job in a background
do_image_manipulation
end
I would like to avoid daemonizing.
You could try using threads. Just render your view, and then spawn a new thread.