@@ -7,6 +7,6 @@ class CreationTagsController < ApplicationController
@tag = params[:id].downcase.gsub(/ /, '-')
@total_tutorials = Tutorial.tagged_with(@tag).count
@total_creations = Creation.tagged_with(@tag).count
- @creations = Creation.includes([:user, :tags, :photos]).tagged_with([@tag]).page(params[:page]).per(15)
+ @creations = Creation.includes([:user, :tags, :photos]).tagged_with([@tag]).where('photos_count > 0').page(params[:page]).per(15)
end
end