maxjustus / sinatra-authentication

A sinatra extension wrapped in a gem that implements authentication/permissions with users stored in the database. Now with optional support for facebook connect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No files or directories folder/views/auth/signup.haml

CharlyJazz opened this issue · comments

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