![Gibheer](/assets/img/avatar_default.png)
This way RouteNotFound can use the renderer to display a more helpful message in the design of the rest of the page.
9 lines
186 B
Ruby
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
|