Merge pull request #2137 from bagilevi/fix-tags-controller
fixed tags#show when tag is not found
This commit is contained in:
commit
6ce1acd83b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue