Method: Lookbook::PagesController#index

Defined in:
app/controllers/lookbook/pages_controller.rb

#indexObject



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

def index
  landing = Engine.pages.find(&:landing?) || Engine.pages.first
  raise_not_found("Page not found") unless landing.present?

  redirect_to lookbook_page_path(landing.path)
end