Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 540 Bytes

number-formatting.md

File metadata and controls

27 lines (19 loc) · 540 Bytes

Number Formatting

Number Row

show do
  attributes_table do
    number_row :number, as: :human
  end
end

Number Column

index do
  number_column :number, as: :currency, unit: "$", separator: ","
end

Options

If you want to customize the default number format, you can pass the same options passed to Rails NumberHelper methods.