Class: Cms::ContentResponder
- Inherits:
-
ActionController::Responder
- Object
- ActionController::Responder
- Cms::ContentResponder
- Defined in:
- lib/cms/responders/content_responder.rb
Instance Method Summary collapse
-
#initialize(controller, resources, options = {}) ⇒ ContentResponder
constructor
A new instance of ContentResponder.
- #to_html ⇒ Object
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, ={}) @page = resources[0] @page_layout = resources[1] super(controller, resources, ) end |
Instance Method Details
#to_html ⇒ Object
10 11 12 |
# File 'lib/cms/responders/content_responder.rb', line 10 def to_html render :layout => @page_layout, :action => 'show' end |