Long requests should be moved into a background process, and Delayed Job is one of the easiest ways to do this because it works with an Active Record database.
This is a revised episode, see the original episode.
Subscribe to RailsCasts Pro to access this episode and other pro and revised episodes. Only $9 per month.