ループで質問IDが欲しい
<div class = "y">
<% @slno = 0 %>
<%- @answers.each do |b| -%>
<% @slno= @slno + 1 %>
<div class = "label_field_pair">
<label for "questions">
<%= @slno %> ) <%= b.ques %>
</label> <br>
<div class = "label_field_pair2">
<label for "options">
<%= radio_button_tag "question#{b.id}", "#{b.id}ans1"%><%= b.ans1 %>
<%= radio_button_tag "question#{b.id}", "#{b.id}ans2"%><%= b.ans2 %>
<%= radio_button_tag "question#{b.id}", "#{b.id}ans3"%><%= b.ans3 %>
<%= radio_button_tag "question#{b.id}", "#{b.id}ans4"%><%= b.ans4 %>
</label>
</div>
</div>
<% end %>
<div id = "submit_button">
<%= submit_tag "", :value => "Submit" %>
</div>
</div>
ここに質問が表示されました...質問のIDがそれぞれに個別に欲しい