first hero section on index

This commit is contained in:
2022-11-22 19:44:34 +02:00
parent d087af0879
commit ee479cdffc
6 changed files with 39 additions and 1 deletions

View File

@ -1,4 +1,10 @@
class CmsController < ApplicationController
def view
page = params[:id]
# assert file exists
@data = YAML.load_file(Rails.root.join('cms' , "#{page}.yaml"))
#assert data is an array (of hashes?)
end
end