Sha256: 9c68016bea7e29080d8a4f88cccc94be3584c6bc9071e6857fc023bf22d72868

Contents?: true

Size: 242 Bytes

Versions: 1

Compression:

Stored size: 242 Bytes

Contents

module Hyrax
  # Shows the about page
  class PagesController < ApplicationController
    helper Hyrax::ContentBlockHelper

    layout 'homepage'

    def show
      @page = ContentBlock.find_or_create_by(name: params[:id])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test_hyrax-0.0.1.alpha app/controllers/hyrax/pages_controller.rb