Skip to content
Extraits de code Groupes Projets
Valider 6ce1acd8 rédigé par Maxwell Salzberg's avatar Maxwell Salzberg
Parcourir les fichiers

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

fixed tags#show when tag is not found
parents d226c32f 43544a7b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter