Sha256: ac7827124734e4c14cf63f2a9bcbf00d46b6f274a3e49b70be77c43a16ce7e12

Contents?: true

Size: 333 Bytes

Versions: 15

Compression:

Stored size: 333 Bytes

Contents

class ResultsController < ApplicationController
  helper 'surveyor'
  layout 'results' 
  def index
    @surveys = Survey.all
  end

  def show
    @survey = Survey.find_by_access_code(params[:survey_code])
    @response_sets = @survey.response_sets
    @questions = @survey.sections_with_questions.map(&:questions).flatten
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
surveyor-0.21.0 app/controllers/results_controller.rb
surveyor-0.20.0 app/controllers/results_controller.rb
surveyor-0.19.7 app/controllers/results_controller.rb
surveyor-0.19.6 app/controllers/results_controller.rb
surveyor-0.19.5 app/controllers/results_controller.rb
surveyor-0.19.4 app/controllers/results_controller.rb
surveyor-0.19.3 app/controllers/results_controller.rb
surveyor-0.19.2 app/controllers/results_controller.rb
surveyor-0.19.1 app/controllers/results_controller.rb
surveyor-0.19.0 app/controllers/results_controller.rb
surveyor-0.18.2 app/controllers/results_controller.rb
surveyor-0.18.1 app/controllers/results_controller.rb
surveyor-0.18.0 app/controllers/results_controller.rb
surveyor-0.17.0 app/controllers/results_controller.rb
surveyor-0.16.1 app/controllers/results_controller.rb