title: controller taking lot of time causing time out
body: <p>I have a code like this</p>
  
  <pre><code>def validate
  
    if abc.nil?
      redirect_to :action =&gt; 'noInitialSelection'
    else
      redirect_to :action =&gt; 'Selection'
      script(params)
    end
  
  end
  </code></pre>
  
  <p>The script method has to process a file of 10000 names and do related work . now the problem is as it takes a lot of time for the code to be completed , the page is not being redirected to selection and causing a 500 internal server error</p>
  
  <p>i want the page to be redirected to 'selection' so that the user knows he has entered correct details and then do the script method in the background</p>
  
  <p>Thanks</p>