Skip to content

Instantly share code, notes, and snippets.

@cameroncox
Forked from dannymcc/gist:2568172
Created May 1, 2012 14:14
Show Gist options
  • Save cameroncox/2568177 to your computer and use it in GitHub Desktop.
Save cameroncox/2568177 to your computer and use it in GitHub Desktop.
class ReportMailer < ActionMailer::Base
default from: "admin@hillcrestanimalhospital.co.uk"
def income_by_month_report(report_results)
@report_results = report_results
mail(to: "danny@hillcrestanimalhospital.co.uk", subject: "Monthly Income Report")
end
end
<% @report_results.each do |month| %>
<%= month %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment