search for: currency_format

Displaying 3 results from an estimated 3 matches for "currency_format".

2006 Jan 27
3
Formatting Data in rhtml
Is there a simple way to format your data in the .rhtml file? I come from a PHP/Smarty background, and in the templates, I''ve used what is called "modifiers" to format data. {$price|currency_format} # displays in currency format {$description|truncate:"100"} # Truncates the description after 100 characters It seems like the template (rhtml) would be the ideal place to play with the display format. I saw a display_currency function in one of the other posts, and I tried includin...
2006 Jun 05
0
Failed to install Globalize plugin
...alize_languages, :iso_639_1) -> 0.2810s -- add_index(:globalize_languages, :iso_639_2) -> 0.2200s -- add_index(:globalize_languages, :iso_639_3) -> 0.2300s -- add_index(:globalize_languages, :rfc_3066) -> 0.2910s rake aborted! Mysql::Error: Data too long for column ''currency_format'' at row 1: INSERT INTO globalize_countries (`id`, `code`, `english_name`, `date_format`, `currency_format`, `currency_code`, `thousands_sep`, `decimal_sep`, `currency_decimal_sep`, `number_grouping_scheme`) VALUES (''100'', ''IL'', ''Israel'&...
2007 Aug 07
4
Execute additional commands after creating database?
...schema "rails" does not exist : CREATE TABLE rails.globalize_countries ("id" serial primary key, "code" character varying(2) DEFAULT NULL, "english_name" character varying(255) DEFAULT NULL, "date_format" character varying(255) DEFAULT NULL, "currency_format" character varying(255) DEFAULT NULL, "currency_code" character varying(3) DEFAULT NULL, "thousands_sep" character varying(2) DEFAULT NULL, "decimal_sep" character varying(2) DEFAULT NULL, "currency_decimal_sep" character varying(2) DEFAULT NULL, "n...