Skip to content

Instantly share code, notes, and snippets.

@mmmurf
Created August 13, 2008 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmmurf/5211 to your computer and use it in GitHub Desktop.
Save mmmurf/5211 to your computer and use it in GitHub Desktop.
<h1>This is a page with a report on it:</h1>
<h2>Long Running Report</h2>
<% future_cache("long running report for user #{current_user.id}", {:ttl => 1.day, :callback => current_user.deliver_report_finished_email}) do %>
<% render :partial => 'report', :collection => current_user.reports.big %>
<% else %>
<strong> This report is being generated, you will receive an email when it's complete</strong>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment