def index
      if params[:filters]
        @tags = build_query_from_filters Tag, params[:filters]
      else
        @tags = Tag.all
      end

      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @tags }
      end
    end
def index
      if params[:filters]
        @tags = build_query_from_filters Tag, params[:filters]
      else
        @tags = Tag.all
      end

      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @tags }
      end
    end
GET /tags
 GET /tags.json