# File lib/rhc/helpers.rb, line 268
    def table_heading(value)
      # Set the default proc to look up undefined values
      headings = Hash.new do |hash,key|
        items = key.to_s.split('_')
        # Look up each piece individually
        hash[key] = items.length > 1 ?
          # Recusively look up the heading for the parts
          items.map{|x| headings[x.to_sym]}.join(' ') :
          # Capitalize if this part isn't defined
          items.first.capitalize
      end

      # Predefined headings (or parts of headings)
      headings.merge!({
        :creation_time  => "Created",
        :expires_in_seconds => "Expires In",
        :uuid           => "UUID",
        :current_scale  => "Current",
        :scales_from    => "Minimum",
        :scales_to      => "Maximum",
        :gear_sizes     => "Allowed Gear Sizes",
        :consumed_gears => "Gears Used",
        :max_gears      => "Gears Allowed",
        :gear_info      => "Gears",
        :plan_id        => "Plan",
        :url            => "URL",
        :ssh_string     => "SSH",
        :connection_info => "Connection URL",
        :gear_profile   => "Gear Size",
        :visible_to_ssh? => 'Available',
        :downloaded_cartridge_url => 'From',
      })

      headings[value]
    end