Rails ActionController::BadRequest causes 500 Server Error on production server
问题 We have a Turkish website and some old links are crawled by some search engines. The links seem to be malformed or cannot be processed and therefore causing ActionController::BadRequest error. On the local machine with development env this causes to return the Rails error page with ActionController::BadRequest . But on the Server we get an 500 server error . This issues is discussed on several other pages like here. But none of the solutions helped. In both cases we would like to redirect to