Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seem to run even the example #4

Open
stefang opened this issue Feb 4, 2013 · 0 comments
Open

Can't seem to run even the example #4

stefang opened this issue Feb 4, 2013 · 0 comments

Comments

@stefang
Copy link

stefang commented Feb 4, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant