- @sub_tabs = %w(kthxbye redis keys) %h2 Stats for #{params[:id] || params[:key] || "kthxbye"} %p - if params[:key] - type = Kthxbye.redis.type(params[:key]) = type == "list" ? "No support for displaying redis lists" : partial(type) - elsif !params[:id] || params[:id] == "kthxbye" %table - Kthxbye.inspect.each do |k,v| %tr %td=k %td=v - elsif params[:id] == "redis" %table - Kthxbye.redis.info.each do |k,v| %tr %td=k %td=v - elsif params[:id] == "keys" %table - Kthxbye.keys.each do |key| %tr %td %a{:href => "/stats/keys/#{key}"} =key