Thanks a lot, I have post it in rubyonrails-talk.
Sorry for this but I though this was more linked to ruby than to rails.
Luc