Small fixes for flashing
This commit is contained in:
parent
c5d6293737
commit
498ecf76f5
@ -1,3 +1,4 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative 'index'
|
||||
require_relative 'message'
|
||||
|
@ -23,6 +23,10 @@ class Destructo < Sinatra::Base
|
||||
require_relative 'helpers'
|
||||
helpers Helpers
|
||||
|
||||
# Register flash messages
|
||||
require 'sinatra/flash'
|
||||
register Sinatra::Flash
|
||||
|
||||
# Set up our view engine
|
||||
set :views, File.join(settings.root, '/../views')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user