0
如何呈現404或頁面不存在像Twitter一樣? 我用導軌3.2.3渲染頁面不存在像Twitter在軌3
我的代碼
def rescue_with_handler(exception)
redirect_to '/500.html'
end
def method_missing(id, *args)
redirect_to '/404.html'
end
這一工程,但我想成爲像Twitter。例如,如果我訪問此頁面 https://twitter.com/abcd/skka/asafaga 和https://twitter.com/abcd/skka