In an edit.html.erb file I have the code
<%= form_for @submission do |f| %>
<%= f.fields_for :submitted_answers do |answer| %>
<%= answer.label :question_id %>
<%= answer.number_field :question_id %>
<% end %>
<% end %>
This shows me a number field that has the current value of question_id and allows me to change it. Now I just want to display that value and not let anyone change it. How would I get that value?
If I say
<% @question = :question_id %>
question just equals a string: "question_id"