Created
November 9, 2012 01:04
-
-
Save bigfolio/4043057 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[Thu Nov 08 19:01:37 2012] [notice] caught SIGTERM, shutting down |
This file contains hidden or 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
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 |
This file contains hidden or 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
Sent mail to [email protected] .. (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