2

I need to display & edit highly precise decimal numbers - latitude and longitude. ActiveScaffold keep rounding my values to precision 6 scale 3, can I change that to precision 11 scale 8 somewhere?

Thanks

jaycode
  • 2,926
  • 5
  • 35
  • 71

1 Answers1

1

I haven't used ActiveScaffold for quite a while but maybe this could do?

config.columns[:latitude].options[:format] = "%6.3f"
Jonas Elfström
  • 30,834
  • 6
  • 70
  • 106
  • Thanks, will try to see if this works later. What do you use now? Any better option? – jaycode May 19 '10 at 06:25
  • Not using anything like ActiveScaffold at the moment but I think I will check out http://hobocentral.net/blog/2010/02/23/hobo-1-0-released/ the next time I need something like that. – Jonas Elfström May 19 '10 at 07:00
  • thanks, the doc for active scaffold is really unclear about that – m_x Oct 24 '11 at 15:08