Despite the contents of the rb files, it would be hard to guess what was wrong. If the routes are specified in the rb files in a subfolder inside the root directory of your application, you will need to explicitly set the views folder.
In your case, if /app.rb is the file that sets up the basic configuration, you will need to install views (or something else like that in the shared folder).
class MyApp < Sinatra::Base set :views, File.dirname(__FILE__) + '/views' set :public_folder, File.dirname(__FILE__) + '/public' end
Else Sinatra will search in subsequent subfolders for the corresponding paths. In addition, subsequent route files must extend to the same class. In this case, MyApp. For example, in ./lib/admin.rb
class MyApp < Sinatra::Base get "/blah" do "blah blah" end end
source share