diff --git a/Gemfile.lock b/Gemfile.lock index 1311894..a2d1c15 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -28,7 +28,7 @@ PATH remote: ../substance-rails specs: - substance-rails (1.0.1) + substance-rails (0.0.1) actionpack (>= 3.1) execjs (>= 2.2.2, >= 2.2) railties (>= 3.1) diff --git a/app/views/dmptemplates/_show_question.html.erb b/app/views/dmptemplates/_show_question.html.erb index df79c2b..03ee743 100644 --- a/app/views/dmptemplates/_show_question.html.erb +++ b/app/views/dmptemplates/_show_question.html.erb @@ -19,7 +19,7 @@ <%= raw question.text %>
- <% q_format = question.question_format %> + <% q_format = question.question_format || QuestionFormat.first %> <% if q_format.title == t("helpers.checkbox") || q_format.title == t("helpers.multi_select_box") || q_format.title == t("helpers.radio_buttons") || q_format.title == t("helpers.dropdown") then%>