Skip to content

Instantly share code, notes, and snippets.

@felipekk
Created December 24, 2009 20:06
Show Gist options
  • Save felipekk/263346 to your computer and use it in GitHub Desktop.
Save felipekk/263346 to your computer and use it in GitHub Desktop.
Currency model migration:
create_table :currencies do |t|
t.decimal :value, :precision => 12, :scale => 2
t.timestamps
end
Environment:
config.gem "delocalize"
config.i18n.default_locale = 'pt-BR'
locales/pt-BR.yml:
pt-BR:
number:
format:
separator: ","
delimiter: .
precision: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment