From ff3fe97415fc88424593149a5aad5f3b277b4856 Mon Sep 17 00:00:00 2001 From: aneta-bielska Date: Wed, 9 Mar 2016 20:25:24 +0100 Subject: [PATCH] add config.ru example file and require sinatra/base --- asset_management/sprockets.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/asset_management/sprockets.md b/asset_management/sprockets.md index 10bdb69..43ff68e 100644 --- a/asset_management/sprockets.md +++ b/asset_management/sprockets.md @@ -127,7 +127,7 @@ Summing up, your main application file may look like this: # app/app.rb # install and require all dependencies -require 'sinatra' +require 'sinatra/base' require 'sprockets' require 'uglifier' require 'sass' @@ -158,6 +158,14 @@ class MyApp < Sinatra::Base end ``` +```ruby +# app/config.ru + +require './app' + +run MyApp.new +``` + ## Resources For more information visit: