You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run the example I get a few errors. First it fails asking for Rack::Test So I include that so then I start getting this:
myapp.rb:6:in `
': uninitialized constant MyApp (NameError)
Guessing there's a trick to getting the class MyApp::App < Sinatra::Base style of things to work I've not yet encountered?
My current app uses the standard MyApp < Sinatra::Base style, no ::App. If I try to use sinatra_static with my current app in that config it complains that it can't call app.each_route when build! is called.
Some pointers would be hugely appreciated!
Regards, Stefan
The text was updated successfully, but these errors were encountered:
When I try to run the example I get a few errors. First it fails asking for Rack::Test So I include that so then I start getting this:
myapp.rb:6:in `
': uninitialized constant MyApp (NameError)Guessing there's a trick to getting the class MyApp::App < Sinatra::Base style of things to work I've not yet encountered?
My current app uses the standard MyApp < Sinatra::Base style, no ::App. If I try to use sinatra_static with my current app in that config it complains that it can't call app.each_route when build! is called.
Some pointers would be hugely appreciated!
Regards, Stefan
The text was updated successfully, but these errors were encountered: