This is the example to use multiple controllers in a Sinatra application. Please see my blog for more information.
-
ruby verison: 2.2.2
-
clone the repo:
git clone [email protected]:pingzh/multiple-controllers-in-sinatra-application.git
cd multiple-controllers-in-sinatra-application
- start the server:
rackup config.ru -p 4567
- enjoy :)