2

I am using rails 3 activesacaffold plugin for my admin pannel. I have a table which has big int values.

When I list the values its showing as '62,175,049,070'. How can I format this to show like '62175049070'. Since we are using activescaffold plugin we dont have any direct view pages to make modification.

enter image description here

Please help!

Amal Kumar S
  • 15,555
  • 19
  • 56
  • 88

1 Answers1

1

Use the delimiter option:

active scaffold :model do
  ...
  conf.columns[:ndc].options = {:i18n_number => {:delimiter => ''}}
  ...
end

https://github.com/activescaffold/active_scaffold/wiki/API:-Column

clyfe
  • 23,695
  • 8
  • 85
  • 109