Commit 3d99d63b

mo khan <mo@mokhan.ca>
2013-06-18 03:29:05
downcase the tag before looking it up
1 parent 58f08fc
Changed files (1)
app
app/controllers/tags_controller.rb
@@ -1,6 +1,6 @@
 class TagsController < ApplicationController
   def show
-    @tag = params[:id].gsub(/ /, '-')
+    @tag = params[:id].downcase.gsub(/ /, '-')
     @total_tutorials = Tutorial.tagged_with(@tag).count
     @total_creations = Creation.tagged_with(@tag).count
     @creations = Creation.includes(:user).tagged_with([@tag]).page(params[:page]).per(15)