lib/beerdb/server.rb in beerdb-0.8.1 vs lib/beerdb/server.rb in beerdb-0.8.2

- old
+ new

@@ -43,15 +43,18 @@ include BeerDb::Models ################## # Helpers - - helpers do - def path_prefix - request.env['SCRIPT_NAME'] - end - end + # + # NB: helpers are just instance methods! no need in modular apps to use + # helpers do + # <code> + # end + + def path_prefix + request.env['SCRIPT_NAME'] + end ############################################## # Controllers / Routing / Request Handlers get '/' do