Joined February 2012
·
8feb5b9d82b88d334d2342ae950af804

Jared Grippe

Change.org
Change.org
·
San Francisco, CA, USA
·
·
·

For some more context: We have an app where with a

get '/:username' => "…"

route which was raising a second exception to an obscure status code route.

I highly recommend anyone who needs to render errors this way either use controller exception catching or bypass the rails router all together.

This is a much better way to do this

config.exceptions_app = proc{|env|
  ErrorsController.action(:render_error).call(env)
}
Achievements
98 Karma
0 Total ProTip Views