Home Rails: How to send json response immediately for long running job
 I am processing long running jobs. i am invoking long running method from controller. i want to send json response immediately to the user. below is my code but its not working. def process p = Proces.new(:status => "in-progress") render :json => {:id => process.id} long_running_job() end  How can i send json response immediately?