Slowly getting there. Display the CAF. This is a littel harder than I thought. Maybe I'm tired.

This commit is contained in:
2023-02-23 19:32:40 +00:00
parent a35b656cf3
commit 59c678aa62
4 changed files with 60 additions and 46 deletions

View File

@@ -2,9 +2,10 @@ class HomeController < ApplicationController
def index
if user_signed_in?
if current_user.admin?
@file = YAML.load_file(Rails.root.to_s + '/config/caf_text.yml')
@objectives = @file["objectives"]
# @file = YAML.load_file(Rails.root.to_s + '/config/caf_text.yml')
# @objectives = @file["objectives"]
else
#
end
end