class Weneedfeed::Controllers::ShowTopPage

Public Instance Methods

call() click to toggle source
# File lib/weneedfeed/controllers/show_top_page.rb, line 6
def call
  page_schemata = schema.page_schemata.sort_by(&:title)
  response.content_type = 'text/html'
  response.write(
    ::Weneedfeed::Views::ShowTopPage.new(
      page_schemata: page_schemata,
      partial_template_path: ::File.expand_path(
        'templates/show_top_page.html.erb',
        "#{__dir__}/../../.."
      ),
      request: request
    ).to_s
  )
end