Skip to content

Can't seem to run even the example #4

@stefang

Description

@stefang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions