durfdoen-2.0/layouts/quiz.erb

11 lines
275 B
Text
Raw Normal View History

2020-02-27 21:16:01 +01:00
<h1>Hallo</h1>
2020-02-27 20:45:15 +01:00
<ul>
2020-02-27 22:45:50 +01:00
<% @items.find_all("**/quiz/*").each_with_index do |quest, i| %>
<div id="question_<%=i%>" class="question">
<h2> <%= quest[:vraag] %> </h2>
<%= render '/partials/question.*', question: quest %>
2020-02-27 21:16:01 +01:00
</div>
2020-02-27 20:45:15 +01:00
<% end %>
2020-02-27 21:45:34 +01:00
</ul>
<%= yield %>