Numéro de format des rails K - M
# In views
number_to_human(1200, :format => '%n%u', :units => { :thousand => 'K' })
# In a controller
ActionController::Base.helpers.number_to_human(number, :format => '%n%u', :units => { :thousand => 'K' })
Lioruby