Page MenuHomec4science

custom_public_exceptions.rb
No OneTemporary

File Metadata

Created
Mon, May 13, 11:59

custom_public_exceptions.rb

class CustomPublicExceptions < ActionDispatch::PublicExceptions
def call(env)
status = env["PATH_INFO"][1..-1]
if status == "404"
Rails.application.routes.call(env)
else
super
end
end
end

Event Timeline