class UserModuleAssessmentsController < ApplicationController

  private

  def user_module_assessment_params
    
  end
end

class UserModuleAssessmentsController < ApplicationController

  def create
    @submitted_params = user_module_assessment_params
  end

  private

  def user_module_assessment_params
    params.require(:user_module_assessment).permit(selected_answer_choices: {}) 
  end
end

Update strong parameters for UserModuleAssessment
Update strong parameters for UserModuleAssessment

Rails 5.1 has a new feature for supporting arbitrary hashes that we'll
be using to permit the selected_answer_choices for an assessment.

https://github.com/rails/rails/commit/e86524c0c5a26ceec92895c830d1355ae47a7034
