move content to pages
This commit is contained in:
4
config/initializers/high_voltage.rb
Normal file
4
config/initializers/high_voltage.rb
Normal file
@ -0,0 +1,4 @@
|
||||
# use page path on root , rather than /pages/XXX
|
||||
HighVoltage.configure do |config|
|
||||
config.route_drawer = HighVoltage::RouteDrawers::Root
|
||||
end
|
@ -1,3 +1,8 @@
|
||||
Rails.application.routes.draw do
|
||||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||||
|
||||
root to: 'high_voltage/pages#show' , id: 'index'
|
||||
|
||||
get "/blog" , to: "blog#index" , as: :blog_index
|
||||
get "/blog/*title" , to: "blog#page" , as: :blog_page
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user