views:

65

answers:

1

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

A: 

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

config.columns[:latitude].options[:format] = "%6.3f"
Jonas Elfström
Thanks, will try to see if this works later. What do you use now? Any better option?
jaycode
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