Sha256: d78a93d1f25302d1c877775f45225b7151f40c2afda8c8a3b9082963210840bb
Contents?: true
Size: 1.04 KB
Versions: 6
Compression:
Stored size: 1.04 KB
Contents
== SurveyorController The SurveyorController class just includes actions from Surveyor::SurveyorControllerMethods module. You may include your own module, and overwrite the methods or add to them using "super". A template for this customization is in your app/controllers/surveyor\_controller.rb. SurveyorController is "unloadable", so changes in development (and any environment that does not cache classes) will be reflected immediately without restarting the app. == Models Surveyor's models can all be customized: - answer - dependency_condition - dependency - question_group - question - response_set - response - survey_section - survey - validation_condition - validation For example, create app/models/survey.rb with the following contents: class Survey < ActiveRecord::Base def title "Custom #{super}" end end == SurveyorHelper == Views Surveyor's views can be overwritten by simply creating views in app/views/surveyor == Layout Create a custom SurveyorController as above, and specify your custom layout in it.
Version data entries
6 entries across 6 versions & 1 rubygems