Also, don't forget to pass the HTTP status code:
render :status=> 500, :file => File.join(.....
BUT! Rails will render 500 error page for you, but only on the remote
server,
in the rails sources there is a check if you send a request from the
local pc, it renders trace code to you,
and if you make request from remote PC it will render public/500.html
page for you, without any customizations.
Also, don't forget to pass the HTTP status code:
render :status=> 500, :file => File.join(.....
BUT! Rails will render 500 error page for you, but only on the remote
server,
in the rails sources there is a check if you send a request from the
local pc, it renders trace code to you,
and if you make request from remote PC it will render public/500.html
page for you, without any customizations.
Means it has nothing to do with production mode or development mode ??