Downcase tag name in tagscontroller
This commit is contained in:
parent
efd6275e68
commit
2a9fc776e6
1 changed files with 2 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ class TagsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
|
params[:name].downcase!
|
||||||
@aspect = :tag
|
@aspect = :tag
|
||||||
if current_user
|
if current_user
|
||||||
@posts = StatusMessage.
|
@posts = StatusMessage.
|
||||||
|
|
@ -75,7 +76,7 @@ class TagsController < ApplicationController
|
||||||
|
|
||||||
def tag_followed?
|
def tag_followed?
|
||||||
if @tag_followed.nil?
|
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
|
end
|
||||||
@tag_followed
|
@tag_followed
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue