I installed Globalize today wo any problem..
config/environment.rb :
....
include Globalize
Locale.set_base_language('fr-FR')
date is correctly localized, static texte too.
.
my only problem is with current...
in my DB (test data) I have a price column (integer)
the Model is :
class Product < ActiveRecord::Base
composed_of :price, :class_name => "Globalize::Currency", :mapping
=> [ %w(price cents) ]
the list view display the price
<td width="30%" align="right">
<%= product.date_available.localize("%d %B %Y") %><br/>
<strong>$<%= product.price %></strong>
</td>
but I get : (the dollar currency is still there !)
26 Janvier 2005
$30,00 €
LAst question
is how I define the price entry in my view
i suppose that what I wrote is now sufficient :
<p><label for="product_price">Prix</label><br/>
<%= text_field 'product', 'price' %></p>
thansk for yoru help to a newrubies.....
kad
_______________________________________________
Railsi18n-discussion mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/railsi18n-discussion