cms base controller and namespace

This commit is contained in:
2022-11-25 13:10:11 +02:00
parent b853a1201b
commit 45541938b9
7 changed files with 87 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
module Cms
class CmsController < ApplicationController
layout 'cms_layout'
end
end
+1 -1
View File
@@ -1,6 +1,6 @@
module Cms
class ImageController < ApplicationController
class ImageController < CmsController
@@root = "app/assets/images/cms/"
@@files = Set.new Dir.new(Rails.root + @@root).children