Add the error page.

ControllerBase#NotFound() renders this page instead of redirecting to the top page.
This commit is contained in:
takezoe
2013-06-06 21:41:41 +09:00
parent 62912f5416
commit a037ef34ce
2 changed files with 5 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ abstract class ControllerBase extends ScalatraFilter with ClientSideValidationFo
}
}
protected def NotFound() = redirect("/")
protected def NotFound() = html.error("Not Found")
protected def Unauthorized() = redirect("/")
}