diff --git a/app/models/question.rb b/app/models/question.rb index c36aaef..f6c3b8a 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -45,7 +45,7 @@ end - def isOptionBased? + def option_based? format = self.question_format return format.option_based end diff --git a/app/views/answers/update.js.erb b/app/views/answers/update.js.erb index c26a623..1ffdc73 100644 --- a/app/views/answers/update.js.erb +++ b/app/views/answers/update.js.erb @@ -1,5 +1,3 @@ -console.log("Answer update called"); - // after saving the answer (and possibly getting a conflict) // set the message div about the answer. // On success this will be "" on error it will be the diff --git a/app/views/phases/_answer.html.erb b/app/views/phases/_answer.html.erb index d3563f9..7e74f5b 100644 --- a/app/views/phases/_answer.html.erb +++ b/app/views/phases/_answer.html.erb @@ -20,7 +20,7 @@ <%= af.inputs do %> - <% if question.isOptionBased? %> + <% if question.option_based? %> <% options = question.options.order("number") %> @@ -37,7 +37,7 @@ :collection => options, :label => false, :input_html => { :multiple => true , :disabled => :true } %> - <% elsif qformat.radiobuttons %> + <% elsif qformat.radiobuttons?%>
    <% options.each do |op| %>
  1. diff --git a/app/views/phases/_answer_form.html.erb b/app/views/phases/_answer_form.html.erb index dee0e31..31e4ee3 100644 --- a/app/views/phases/_answer_form.html.erb +++ b/app/views/phases/_answer_form.html.erb @@ -57,7 +57,7 @@
    - <% if question_obj.isOptionBased? %> + <% if question_obj.option_based? %> <% options = question.options.order("number") %>