From 43544a7beeaf90020337224b6ab5c2448b8dbf4c Mon Sep 17 00:00:00 2001 From: Levente Bagi Date: Sat, 8 Oct 2011 00:05:27 +0100 Subject: [PATCH] fixed tags#show when tag is not found Bug introduced by commit 2b22e1dab --- app/controllers/tags_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 1aeb9a56c..d86e823c3 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -49,7 +49,7 @@ class TagsController < ApplicationController params[:name].downcase! @aspect = :tag @tag = ActsAsTaggableOn::Tag.find_by_name(params[:name]) - @tag_follow_count = @tag.followed_count + @tag_follow_count = @tag.try(:followed_count).to_i if current_user @posts = StatusMessage.owned_or_visible_by_user(current_user)