From 58c2df6749bcc75ff5732cc700368c8b48653bd5 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 6 Mar 2017 15:22:21 +0800 Subject: [PATCH] added new line to br --- app/views/surveys/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/surveys/show.html.erb b/app/views/surveys/show.html.erb index 1c7091f..e3d2748 100644 --- a/app/views/surveys/show.html.erb +++ b/app/views/surveys/show.html.erb @@ -38,7 +38,7 @@ <%= form_for :answer, :method => :put, :url => survey_path(@survey), :html => {:class => 'survey clear'} do |f| %>

<%= @survey.title %>

- <%= @survey.description.html_safe %> + <%= nl2br(@survey.description) %>
    <% @questions.each_with_index do |question, i| %>