How to permit hash with * key => values?
<p>I want to create an object with strong params that can accept dynamic hash keys.</p>

<p>This is my code,</p>

<pre><code>Quiz.create(quiz_params)


def quiz_params
  params.require(:quiz).permit(:user_id, :percent, :grade, questions: {})
end
</code></pre>

<p>data that gets passed in would look something like this.</p>

<pre><code>// the keys that get passed into question is always different

quiz: {
  user_id: 1,
  percent: 80,
  grade: "B",
  questions: {
    "12": "24",
    "1": "12",
    "4": "3",
    "5": "22"
  }
}
</code></pre>

<p>Currently however, when I try to create a Quiz, the questions hash turns out empty.</p>