Created
August 13, 2008 07:49
-
-
Save mmmurf/5211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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