def params_includes_answer(answer)
      question_ids = params[:question_id]
      return nil unless question_ids.kind_of? Hash
      answers = question_ids[answer.question_id.to_s]
      return nil unless answers.kind_of? Hash
      answers.values.flatten.include?(answer.id.to_s)
    end
def params_includes_answer(answer)
      question_ids = params[:question_id]
      return nil unless question_ids.kind_of? Hash
      answers = question_ids[answer.question_id.to_s]
      return nil unless answers.kind_of? Hash
      answers.values.flatten.include?(answer.id.to_s)
    end
params should be of form: "question_id"=>{"1"=>{"answer_ids"=>["1"]}}