Class: Vitepress::PagesController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Page
Defined in:
app/controllers/vitepress/pages_controller.rb

Instance Method Summary collapse

Methods included from Page

#invalid_page, #show

Instance Method Details

#indexObject



8
9
10
11
12
13
# File 'app/controllers/vitepress/pages_controller.rb', line 8

def index
  render(
    template: "pages/index",
    locals: { current_page: "pages/index" },
  )
end