Search code examples
ruby-on-railsdecimalactivescaffold

ActiveScaffold keeps rounding my numbers


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


Solution

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

    config.columns[:latitude].options[:format] = "%6.3f"