Downcase tag name in tagscontroller

This commit is contained in:
Raphael Sofaer 2011-07-05 18:03:46 -07:00
parent efd6275e68
commit 2a9fc776e6

View file

@ -41,6 +41,7 @@ class TagsController < ApplicationController
end
def show
params[:name].downcase!
@aspect = :tag
if current_user
@posts = StatusMessage.
@ -75,7 +76,7 @@ class TagsController < ApplicationController
def tag_followed?
if @tag_followed.nil?
@tag_followed = TagFollowing.joins(:tag).where(:tags => {:name => params[:name]}, :user_id => current_user.id).exists? #,
@tag_followed = TagFollowing.joins(:tag).where(:tags => {:name => params[:name]}, :user_id => current_user.id).exists? #,
end
@tag_followed
end