aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts/index.html.erb
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2011-02-15 23:19:08 -0600
committerJoe Sak <joe@joesak.com>2011-02-15 23:19:08 -0600
commit2b86be50d2c8e1299e729be6f90a03b4631956ba (patch)
tree0d96167bb951c56614fd76aa6d6a5c88eacc3cf3 /app/views/blog/posts/index.html.erb
parent8649dc7ff3d9cfbbe8e6fcac01146cf9b6eaf71f (diff)
downloadrefinerycms-blog-2b86be50d2c8e1299e729be6f90a03b4631956ba.tar.gz
refinerycms-blog-2b86be50d2c8e1299e729be6f90a03b4631956ba.tar.bz2
refinerycms-blog-2b86be50d2c8e1299e729be6f90a03b4631956ba.zip
.html_safe failed on empty body & sidebody content
Diffstat (limited to 'app/views/blog/posts/index.html.erb')
-rw-r--r--app/views/blog/posts/index.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/blog/posts/index.html.erb b/app/views/blog/posts/index.html.erb
index 766d689..a2e428a 100644
--- a/app/views/blog/posts/index.html.erb
+++ b/app/views/blog/posts/index.html.erb
@@ -1,5 +1,5 @@
<% content_for :body_content_left do %>
- <%= @page[Page.default_parts.first.to_sym].html_safe if Page.default_parts.any? %>
+ <%=raw @page[Page.default_parts.first.to_sym] if Page.default_parts.any? %>
<% if @blog_posts.any? %>
<section id="blog_posts">
@@ -11,7 +11,7 @@
<% end %>
<% content_for :body_content_right do %>
- <%= @page[Page.default_parts.second.to_sym].html_safe if Page.default_parts.many? %>
+ <%=raw @page[Page.default_parts.second.to_sym] if Page.default_parts.many? %>
<%= render :partial => "/blog/shared/categories" %>
<%= render :partial => "/blog/shared/rss_feed" %>