Sha256: 8017d2c864a4764e9a4acfd281dffcbc17afde8d78c752572e7d5c594b84b911
Contents?: true
Size: 872 Bytes
Versions: 5
Compression:
Stored size: 872 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 # available_surveys_path end def surveyor_finish # the update action redirects to this method if given params[:finish] super # available_surveys_path end end class SurveyorController < ApplicationController include Surveyor::SurveyorControllerMethods include SurveyorControllerCustomMethods end
Version data entries
5 entries across 5 versions & 1 rubygems