Sha256: dc43db5ad7c5963b7ac886cd0ec8cabcaf7f5d1e1400fc73c1f381a0a8315085

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

class Ecm::Cms::PageController < ApplicationController
  # inject locale to params and vice versa
  include RailsTools::I18nController
  
  # add the page resolver
  append_view_path Ecm::Cms::PageResolver.instance unless view_paths.include?(Ecm::Cms::PageResolver.instance)

  def respond
    render :template => params[:page]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_cms-0.0.5.pre app/controllers/ecm/cms/page_controller.rb
ecm_cms-0.0.4.pre app/controllers/ecm/cms/page_controller.rb
ecm_cms-0.0.3.pre app/controllers/ecm/cms/page_controller.rb
ecm_cms-0.0.2.pre app/controllers/ecm/cms/page_controller.rb
ecm_cms-0.0.1.pre app/controllers/ecm/cms/page_controller.rb