app.rb
.ApplicationController
unless they are intended to be accessible by every other controller, which is rarely the case (apart from error routes like error Sinatra::NotFound do ... end
, which should typically redirect to a /404
route defined in MainController
)./
should instead be defined in MainController
.