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"] %>