Skip to content

Instantly share code, notes, and snippets.

@bigfolio
Created November 9, 2012 01:04
Show Gist options
  • Save bigfolio/4043057 to your computer and use it in GitHub Desktop.
Save bigfolio/4043057 to your computer and use it in GitHub Desktop.
[Thu Nov 08 19:01:37 2012] [notice] caught SIGTERM, shutting down
class DemosController < ApplicationController
# blah blah ...
def create
@demo = Demo.new(params[:demo])
if @demo.save
# Send the email
DemoMailer.welcome_email(@demo).deliver
DemoMailer.notify_email(@demo).deliver
redirect_to thanks_url, notice: 'Demo was successfully created.'
else
render action: "new"
end
end
# blah blah ...
end
Sent mail to foo@foo.foo .. (147ms)
Redirected to http://demo.apfdemo.us/thanks
Completed 302 Found in 6199ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment