Module: Sidewalk::ControllerMixins

Defined in:
lib/sidewalk/controller.rb,
lib/sidewalk/controller_mixins/view_templates.rb

Overview

Optional extension features to the Controller class.

Examples:

Adding #render and supporting views/

class MyController < Sidewalk::Controller
  include Sidewalk::ControllerMixins::ViewTemplates
  def response
    # Look for 'views/my_controller.*' - for example,
    # 'views/my_controller.erb' would be rendered with ERB if
    # present.
    render
  end
end

Defined Under Namespace

Modules: ViewTemplates