diff --git a/layouts/partials/question.erb b/layouts/partials/question.erb index 253700e..0aaa999 100644 --- a/layouts/partials/question.erb +++ b/layouts/partials/question.erb @@ -18,24 +18,59 @@ <% end %> diff --git a/layouts/quiz.erb b/layouts/quiz.erb index 5db28ab..68fb8c0 100644 --- a/layouts/quiz.erb +++ b/layouts/quiz.erb @@ -1,8 +1,11 @@ -

Hallo

+ + + <% @items.find_all("/quiz/*").each_with_index do |quest, i| %>
<%= render '/partials/question.*', question: quest %>
- <% end %> <%= yield %>