Exception: Konmari::Routes::FilenameError
- Inherits:
-
StandardError
- Object
- StandardError
- Konmari::Routes::FilenameError
- Defined in:
- lib/konmari/routes/loader.rb
Overview
Raised when a filename does not have the correct extension, or the first detected line of code does not match the filename
Eg:
# routes/thing/hello.route
resource :world
would raise this error for two reasons:
-
The extension should be
.routes -
The filename should be
world.routesor the resource should be:hello