<%= form.label :quiz_id, 'Quiz' %>
diff --git a/app/views/admin/question/_live_code.html.erb b/app/views/admin/question/_live_code.html.erb
index e2820f8..04af9e6 100644
--- a/app/views/admin/question/_live_code.html.erb
+++ b/app/views/admin/question/_live_code.html.erb
@@ -11,17 +11,17 @@
- <%= text_area_tag 'question[input_options][html]', options['html'], { data: {id: 'code-html', last: options['html']}, class: 'code-answer code-html' } %>
+ <%= text_area_tag 'question[live_code][html]', options['html'], { data: {id: 'code-html', last: options['html']}, class: 'code-answer code-html' } %>
- <%= text_area_tag 'question[input_options][css]', options['css'], { data: {id: 'code-css', last: options['css']}, class: 'code-answer code-css' } %>
+ <%= text_area_tag 'question[live_code][css]', options['css'], { data: {id: 'code-css', last: options['css']}, class: 'code-answer code-css' } %>
- <%= text_area_tag 'question[input_options][js]', options['js'], { data: {id: 'code-js', last: options['js']}, class: 'code-answer code-js' } %>
+ <%= text_area_tag 'question[live_code][js]', options['js'], { data: {id: 'code-js', last: options['js']}, class: 'code-answer code-js' } %>
diff --git a/app/views/admin/question/_radio.html.erb b/app/views/admin/question/_radio.html.erb
index 6343cdc..b918fc7 100644
--- a/app/views/admin/question/_radio.html.erb
+++ b/app/views/admin/question/_radio.html.erb
@@ -3,7 +3,7 @@
<% question.input_options.each do | option | %>
-
- <%= text_field_tag 'question[input_options][]', option, { disabled: (disable ||= false), data: { last: option } } %>
+ <%= text_field_tag 'question[multi_choice][]', option, { disabled: (disable ||= false), data: { last: option } } %>
<% end %>
@@ -12,7 +12,7 @@
<% end %>
diff --git a/app/views/admin/quiz/_form.html.erb b/app/views/admin/quiz/_form.html.erb
index 591a6f5..5815161 100644
--- a/app/views/admin/quiz/_form.html.erb
+++ b/app/views/admin/quiz/_form.html.erb
@@ -1,14 +1,4 @@
-<% if flash[:error].present? %>
-
- <%= flash[:error] %>
-
- <% quiz.errors.messages.each do |k,v| %>
- <%= "#{k.to_s} #{v.join(' and ')}" %>
- <% end %>
-
-
-<% end %>
-
+<%= render partial: 'shared/form_model_errors', locals: { obj: quiz} %>
<%= form_for quiz, url: action do |form| %>