Sinatra doesn't know this ditty even when default route is implemented with modular style

后端 未结 1 480
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-25 00:41

I\'m running MacOS mavericks whith jruby and am trying to write a basic modular sinatra app. Here\'s what my config.ru looks like

1条回答
  •  盖世英雄少女心
    2021-01-25 00:52

    When you use the modular style, the Sinatra::Application app still exists, but usually nothing happens to it. In your config.ru you are running this (empty) app instead of your own. Simply change run Sinatra::Application to

    run App
    

    0 讨论(0)
提交回复
热议问题