app/controllers/surveys/response_controller.rb
# This needs to be done via the respondent id (cookie or other if the person is logged in)
This needs to be done via the respondent id (cookie or other if the person is logged in)
This needs to be done via the respondent id ( cookie or other if the person is logged in )
def index
    @site_config = SiteConfig.first
    if !@survey
      @survey = Survey.find(params[:survey_id])
      @page_title = @survey.name
      @errors = Hash.new()
    end
  end
def index @site_config = SiteConfig . first if ! @survey @survey = Survey . find ( params [ :survey_id ] ) @page_title = @survey . name @errors = Hash . new ( ) end end
This needs to be done via the respondent id (cookie or other if the person is logged in)
This needs to be done via the respondent id ( cookie or other if the person is logged in )