From 356432724b90a88217f93a953026e455ef7a4cf7 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Thu, 11 Aug 2016 17:10:51 -0500 Subject: [PATCH] fixes answer bug for input_type: text --- app/views/quiz/_text.html.erb | 2 +- config/secrets.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/quiz/_text.html.erb b/app/views/quiz/_text.html.erb index be7674a..8fe7a8c 100644 --- a/app/views/quiz/_text.html.erb +++ b/app/views/quiz/_text.html.erb @@ -1,5 +1,5 @@ <% - answers = answer.try(:answer) || answer + answers = answer.respond_to?(:answer) ? answer.answer : answer %> diff --git a/config/secrets.yml b/config/secrets.yml index 01da792..1fb9a20 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -19,4 +19,4 @@ test: # Do not keep production secrets in the repository, # instead read values from the environment. production: - secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> + secret_key_base: <%= ENV["secret_key_base"] %>