From 9b42eb4e8be7fe28de743271a8f068558cd3282b Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 16 Jul 2014 15:25:02 +0800 Subject: [PATCH] added html_safe --- app/helpers/application_helper.rb | 4 ++-- app/helpers/pages_helper.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f57c360..e5449e8 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -230,7 +230,7 @@ module ApplicationHelper end html.html_safe else - return "
It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :(
" + return "
It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :(
".html_safe end else f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', params[:target_controller].singularize, "#{params[:target_action]}.html.erb") @@ -241,7 +241,7 @@ module ApplicationHelper controller = "#{params[:target_controller].capitalize}_controller".classify.constantize.new data = controller.send("#{params[:target_action]}") rescue nil if data.nil? - return "
It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :(
" + return "
It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :(
".html_safe end if data.blank? || data.empty? diff --git a/app/helpers/pages_helper.rb b/app/helpers/pages_helper.rb index 6304e34..a701c64 100644 --- a/app/helpers/pages_helper.rb +++ b/app/helpers/pages_helper.rb @@ -78,7 +78,7 @@ module PagesHelper end html.html_safe else - return "
It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :(
" + return "
It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :(
".html_safe end end