From 66fe12db711e294709895b83cc2166f1108983e8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 27 Apr 2007 19:34:31 +0000 Subject: [PATCH] Fixed a TemplateError nil:NilClass (oracle specific) on _news.rhtml git-svn-id: http://redmine.rubyforge.org/svn/trunk@486 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/news/_news.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/news/_news.rhtml b/app/views/news/_news.rhtml index e48e5041b..1b1d35b1d 100644 --- a/app/views/news/_news.rhtml +++ b/app/views/news/_news.rhtml @@ -1,4 +1,4 @@

<%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %>
-<% unless news.summary.empty? %><%=h news.summary %>
<% end %> +<% unless news.summary.blank? %><%=h news.summary %>
<% end %> <%= news.author.name %>, <%= format_time(news.created_on) %>
<%= news.comments_count %> <%= lwr(:label_comment, news.comments_count).downcase %>