Sha256: f7345476ef7513f5b89dcb262f76642ffdfd1873954982c408b2770ecd593319

Contents?: true

Size: 251 Bytes

Versions: 9

Compression:

Stored size: 251 Bytes

Contents

module Hyrax
  # Shows the about and help 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

9 entries across 9 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/controllers/hyrax/pages_controller.rb
hyrax-1.1.0 app/controllers/hyrax/pages_controller.rb
hyrax-1.0.5 app/controllers/hyrax/pages_controller.rb
hyrax-1.0.4 app/controllers/hyrax/pages_controller.rb
hyrax-1.0.3 app/controllers/hyrax/pages_controller.rb
hyrax-1.0.2 app/controllers/hyrax/pages_controller.rb
hyrax-1.0.1 app/controllers/hyrax/pages_controller.rb
hyrax-1.0.0.rc2 app/controllers/hyrax/pages_controller.rb
hyrax-1.0.0.rc1 app/controllers/hyrax/pages_controller.rb