0
0
zero-blog/controller/route_not_found.rb
Gibheer 256b4da778 convert the RouteNotFound route to a controller
This way RouteNotFound can use the renderer to display a more helpful
message in the design of the rest of the page.
2014-02-13 22:41:09 +01:00

9 lines
186 B
Ruby

module Routes
class RouteNotFound < Controller
def self.get(session)
session.options[:render] = 'error/route_not_found'
session.response.status = 404
end
end
end