Sha256: 9605b993cbf9499d785f0d75a6a5df6a09ef19e7305bcac4c20537961e70e6e7
Contents?: true
Size: 890 Bytes
Versions: 6
Compression:
Stored size: 890 Bytes
Contents
# encoding: UTF-8 module SurveyorControllerCustomMethods def self.included(base) # base.send :before_filter, :require_user # AuthLogic # base.send :before_filter, :login_required # Restful Authentication # base.send :layout, 'surveyor_custom' end # Actions def new super # @title = "You can take these surveys" end def create super end def show super end def edit super end def update super end # Paths def surveyor_index # most of the above actions redirect to this method super # surveyor.available_surveys_path end def surveyor_finish # the update action redirects to this method if given params[:finish] super # surveyor.available_surveys_path end end class SurveyorController < ApplicationController include Surveyor::SurveyorControllerMethods include SurveyorControllerCustomMethods end
Version data entries
6 entries across 6 versions & 4 rubygems