class Konmari::Routes::FilenameError

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:

  1. The extension should be .routes

  2. The filename should be world.routes or the resource should be :hello