add glob patten for missing routes

This commit is contained in:
r888888888
2016-08-30 14:42:01 -07:00
parent 23464f0c3a
commit 929d6e7ec5
2 changed files with 6 additions and 0 deletions

View File

@@ -8,6 +8,10 @@ class StaticController < ApplicationController
redirect_to(url || posts_path)
end
def not_found
render text: "not found", status: :not_found
end
def error
end
end