first hero section on index
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user