Slowly getting there. Display the CAF. This is a littel harder than I thought. Maybe I'm tired.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user