RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: ryan2johnson9
Bad Gateway error was due to Rubinius and Mail gem not working together - not related to this approach - sorry.
This approach is used on our app and currently we are having troubles whenever a gem we are using raises an error - instead of an error message we are getting nginx Bad Gateway pages and nothing in the log and the ErrorsController show action does not get run at all (Could be for another reason and not due to this approach at all - not sure - just seems likely)