Class: MongodbLogger::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- MongodbLogger::Server
- Defined in:
- lib/mongodb_logger/server.rb,
lib/mongodb_logger/server/routes/logs.rb,
lib/mongodb_logger/server/routes/analytic.rb,
lib/mongodb_logger/server/mustache/logs/info.rb
Defined Under Namespace
Modules: Views
Instance Method Summary collapse
Instance Method Details
#show(page, layout = true) ⇒ Object
53 54 55 56 57 58 59 |
# File 'lib/mongodb_logger/server.rb', line 53 def show(page, layout = true) begin erb page.to_sym, { layout: layout } rescue => e erb :error, { layout: false }, error: "Error in view. Debug: #{e.inspect}" end end |