fixes to tag search page

This commit is contained in:
albert
2013-02-17 15:10:58 -05:00
parent 8554cdcc96
commit b4e338bf0f
5 changed files with 14 additions and 8 deletions

View File

@@ -393,7 +393,7 @@ class Tag < ActiveRecord::Base
q = q.name_matches(params[:name_matches])
end
if params[:category]
if params[:category].present?
q = q.where("category = ?", params[:category])
end