app/controllers/survey_respondents/reviews_controller.rb
#
# Return the surveys for specific person
#  
Return the surveys for specific person
Return the surveys for specific person
def surveys
    person_id = params[:person_id]
    surveys = SurveyService.findSurveysForPerson person_id
    render json: surveys.to_json, :content_type => 'application/json'
  end
def surveys person_id = params [ :person_id ] surveys = SurveyService . findSurveysForPerson person_id render json : surveys . to_json , :content_type => 'application/json' end
Return the surveys for specific person
Return the surveys for specific person