diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index 509663bca..9ea481619 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb @@ -30,7 +30,7 @@ <% @results.each do |e| %>
<%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %> - <%= link_to(highlight_tokens(truncate(e.event_title, :length => 255), @tokens), e.event_url) %> + <%= link_to(highlight_tokens(e.event_title.truncate(255), @tokens), e.event_url) %>
<%= highlight_tokens(e.event_description, @tokens) %> <%= format_time(e.event_datetime) %>