show do
attributes_table do
# another attributes...
number_row :amount, as: :currency
end
endindex do
# another attributes...
number_column :profit, as: :percentage
endIf 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
