Sha256: c6fa959ed277d0c91582b963c87ffaec2665a8cc937dbc53fd511cfe7b95a114
Contents?: true
Size: 604 Bytes
Versions: 3
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true module Weneedfeed module Controllers class ShowTopPage < ::Hibana::Controller def call pages = request.env.dig( 'weneedfeed.schema', 'pages' ) response.content_type = 'text/html' response.write( ::Weneedfeed::Views::ShowTopPage.new( pages: pages, partial_template_path: ::File.expand_path( 'templates/show_top_page.html.erb', "#{__dir__}/../../.." ), request: request ).to_s ) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
weneedfeed-0.3.0 | lib/weneedfeed/controllers/show_top_page.rb |
weneedfeed-0.2.0 | lib/weneedfeed/controllers/show_top_page.rb |
weneedfeed-0.1.0 | lib/weneedfeed/controllers/show_top_page.rb |