Class: Cms::ContentResponder

Inherits:
ActionController::Responder
  • Object
show all
Defined in:
lib/cms/responders/content_responder.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller, resources, options = {}) ⇒ ContentResponder

Returns a new instance of ContentResponder.



4
5
6
7
8
# File 'lib/cms/responders/content_responder.rb', line 4

def initialize(controller, resources, options={})
  @page = resources[0]
  @page_layout = resources[1]
  super(controller, resources, options)
end

Instance Method Details

#to_htmlObject



10
11
12
# File 'lib/cms/responders/content_responder.rb', line 10

def to_html
  render :layout => @page_layout, :action => 'show'
end