If i have two models like Question and Answer. Question has three
like question_id, question_type, question_text and Answer has three
I am creating form for the Answer model.
<%= f.text_field :question_id %>.
<%= f.hidden_field :question_id %>.
Here, I am using the hidden field to find the question_type. I tried the
but that doesn’t work. So Somebody help me to get the question_type
by the selection of thatquestion_id.