I would like to know how would you display the values of multiple checkboxes in a view? Below is an example of what am talking about.
<% ExamPaper.all.each do |key, val| %>
<%= f.check_box :exam_type, {:multiple => true}, key.exam_name, :class => 'exam_type'%>
<%= key.exam_name %>
<% end %>
In my view i tried displaying the items that were saved in the database like this;
<%= exam.exam_type %>
and nothing is shown. How would i display the saved items in a rails view?
Thanks..