Merge pull request #2137 from bagilevi/fix-tags-controller

fixed tags#show when tag is not found
This commit is contained in:
Maxwell Salzberg 2011-10-07 16:39:44 -07:00
commit 6ce1acd83b

View file

@ -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)