Sha256: 3afb8045fbe1d82bb09b9d94d1586a697cfb03f11f186633e1ab1dba38cbbeae

Contents?: true

Size: 204 Bytes

Versions: 16

Compression:

Stored size: 204 Bytes

Contents

class CMS::PagesController < ApplicationController
  def show
    @page = CMS::Configuration.pages.find{|p| p.name == params[:page]}
  end

  def static_page
    render "pages/#{params[:page]}"
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
honey-cms-0.5.1 app/controllers/cms/pages_controller.rb
honey-cms-0.4.8 app/controllers/cms/pages_controller.rb
honey-cms-0.4.7 app/controllers/cms/pages_controller.rb
honey-cms-0.4.6 app/controllers/cms/pages_controller.rb
honey-cms-0.4.5 app/controllers/cms/pages_controller.rb
honey-cms-0.4.2 app/controllers/cms/pages_controller.rb
honey-cms-0.4.1 app/controllers/cms/pages_controller.rb
honey-cms-0.4.0 app/controllers/cms/pages_controller.rb
honey-cms-0.3.13 app/controllers/cms/pages_controller.rb
honey-cms-0.3.12 app/controllers/cms/pages_controller.rb
honey-cms-0.3.11 app/controllers/cms/pages_controller.rb
honey-cms-0.3.10 app/controllers/cms/pages_controller.rb
honey-cms-0.3.9 app/controllers/cms/pages_controller.rb
honey-cms-0.3.8 app/controllers/cms/pages_controller.rb
honey-cms-0.3.7 app/controllers/cms/pages_controller.rb
honey-cms-0.3.5 app/controllers/cms/pages_controller.rb