From 66fe12db711e294709895b83cc2166f1108983e8 2007-04-27 19:34:31 From: Jean-Philippe Lang Date: 2007-04-27 19:34:31 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 --- diff --git a/app/views/news/_news.rhtml b/app/views/news/_news.rhtml index e48e504..1b1d35b 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 %>