show do
attributes_table do
# another attributes...
number_row :amount, as: :currency
end
end
index do
# another attributes...
number_column :profit, as: :percentage
end
If you want to customize the default number format, you can pass the same options passed to Rails NumberHelper methods. For example:
show do
attributes_table do
# another attributes...
number_row :amount, as: :currency, unit: "R$", separator: ","
end
end