bringing back the styleguide

completes #67
This commit is contained in:
Mark Moser
2016-08-24 08:23:29 -05:00
parent 2b55fed1bc
commit 2709842d4d
6 changed files with 210 additions and 14 deletions

View File

@ -1,6 +1,6 @@
class AdminController < ApplicationController
layout 'admin'
before_action :authorize_admin
before_action :authorize_admin, except: :styleguide
def dashboard
@quizzes = Quiz.includes(:questions).all

View File

@ -16,6 +16,10 @@ class ApplicationController < ActionController::Base
end
helper_method :current_candidate
def styleguide
render '/styleguide'
end
private
def auth_params