add cms controller
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
# config/initializers/high_voltage.rb
|
||||
HighVoltage.configure do |config|
|
||||
config.route_drawer = HighVoltage::RouteDrawers::Root
|
||||
config.home_page = 'index'
|
||||
end
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user