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!

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top