add cms controller

This commit is contained in:
2022-11-22 16:42:20 +02:00
parent e49c5f3d90
commit d087af0879
8 changed files with 43 additions and 4 deletions

View File

@ -1,5 +1,3 @@
# config/initializers/high_voltage.rb
HighVoltage.configure do |config|
config.route_drawer = HighVoltage::RouteDrawers::Root
config.home_page = 'index'
end

View File

@ -1,5 +1,8 @@
Rails.application.routes.draw do
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# root to: 'high_voltage/pages#show', id: 'index'
get 'pages/:id' , to: 'high_voltage/pages#show', id: 'index'
# root to: 'high_voltage/pages#show', id: 'index'
root to: 'cms#view' , id: 'index'
get "/:id" , to: 'cms#view'
end