You're right.  params[:type] is more like a search param passed to proxies_by_type(), so @total should ignore :type