class Lookbook::ApplicationController

def index

def index
  landing = Lookbook.pages.find(&:landing) || Lookbook.pages.first
  if landing.present?
    redirect_to lookbook_page_path(landing.lookup_path)
  else
    render "lookbook/index", layout: Lookbook.previews.any? ? "lookbook/application" : "lookbook/shell"
  end
end