No files or directories folder/views/auth/signup.haml
CharlyJazz opened this issue · comments
Carlos Azuaje commented
Why does sinatra-authenticatetion not detect my template engine configuration?
require 'sinatra/base'
require 'sinatra/flash'
require "sinatra-authentication"
require 'slim'
class ApplicationController < Sinatra::Base
#if you want flash messages
register Sinatra::Flash
register Sinatra::SinatraAuthentication
use Rack::Session::Cookie, :secret => "sha1h1fsa23xs1j6g436gew5"
# => config
configure do
set :sinatra_authentication_view_path, Pathname(__FILE__).dirname.expand_path + "../views/auth/"
set :template_engine, :slim
set :admin_username, 'frank'
set :admin_password, 'sinatra'
set :public_folder, 'public'
set :views, 'views'
enable :show_exceptions
end