more headings

This commit is contained in:
Mark Moser
2017-03-20 14:38:57 -05:00
parent 0727440a31
commit 5e743ca2eb
14 changed files with 45 additions and 9 deletions

View File

@ -3,6 +3,8 @@
content_for :title, "Questions - Skills Assessment Admin"
%>
<h1>Questions</h1>
<% quizzes = @questions.group_by{ |q| q.quiz.name } %>
<% quizzes.each do |quiz, questions| %>
<h1><%= quiz %></h1>

View File

@ -3,4 +3,6 @@
content_for :title, "New Question - Skills Assessment Admin"
%>
<h1>New Question</h1>
<%= render partial: 'form', locals: {question: @question, action: admin_create_question_path } %>