Back in 2.1.1 everything was sweet: Loading development environment (Rails 2.3.3)>> include ActionView::Helpers::NumberHelper=> Object>> number_to_currency(12.3) >> "$12.30"Then I upgraded to 2.3.2 and: Loading development environment (Rails 2.3.3)>> include ActionView::Helpers::NumberHelper=> Object>> number_to_currency(12.3) >> 12.3Woops! Lets try to be more explicit>> number_to_currency(12.3, :unit => "€") >> 12.3Well that didnt work either, lets try upgrading to the latest version of Rails Loading development environment (Rails 2.3.3)>> include ActionView::Helpers::NumberHelper=> Object>> number_to_currency(12.3) >> 12.3Pretty weird stuff - one of my coworkers has the same problem on his setup. Can anyone reproduce this bug?
On Fri, Jul 24, 2009 at 3:26 AM, pimpmaster <stevendgarcia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Back in 2.1.1 everything was sweet: > > Loading development environment (Rails 2.3.3) > >> include ActionView::Helpers::NumberHelper > => Object > >> number_to_currency(12.3) > >> "$12.30" > > Then I upgraded to 2.3.2 and: > > Loading development environment (Rails 2.3.3) > >> include ActionView::Helpers::NumberHelper > => Object > >> number_to_currency(12.3) > >> 12.3 > > Woops! Lets try to be more explicit > > >> number_to_currency(12.3, :unit => "€") > >> 12.3 > > Well that didnt work either, lets try upgrading to the latest version > of Rails > > Loading development environment (Rails 2.3.3) > >> include ActionView::Helpers::NumberHelper > => Object > >> number_to_currency(12.3) > >> 12.3 > > Pretty weird stuff - one of my coworkers has the same problem on his > setup. > > Can anyone reproduce this bug?I tried the above and here''s my transcript: Loading development environment (Rails 2.3.3)>> include ActionView::Helpers::NumberHelper=> Object>> number_to_currency(12.3)=> "$12.30" What platform are you using to execute the above? -Conrad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 24 Jul 2009, at 12:41, Conrad Taylor wrote:> Loading development environment (Rails 2.3.3) > >> include ActionView::Helpers::NumberHelper > => Object > >> number_to_currency(12.3) > >> 12.3 > > Pretty weird stuff - one of my coworkers has the same problem on his > setup. > > Can anyone reproduce this bug? > > I tried the above and here''s my transcript: > > Loading development environment (Rails 2.3.3) > >> include ActionView::Helpers::NumberHelper > => Object > >> number_to_currency(12.3) > => "$12.30" > > What platform are you using to execute the above?Are you sure you don''t use any old localization plugin or piece of code that overwrites the default? Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Fri, Jul 24, 2009 at 4:32 AM, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org>wrote:> > On 24 Jul 2009, at 12:41, Conrad Taylor wrote: > > Loading development environment (Rails 2.3.3) >> >> include ActionView::Helpers::NumberHelper >> => Object >> >> number_to_currency(12.3) >> >> 12.3 >> >> Pretty weird stuff - one of my coworkers has the same problem on his >> setup. >> >> Can anyone reproduce this bug? > > > I tried the above and here''s my transcript: > > Loading development environment (Rails 2.3.3) > >> include ActionView::Helpers::NumberHelper > => Object > >> number_to_currency(12.3) > => "$12.30" > > What platform are you using to execute the above? > > > Are you sure you don''t use any old localization plugin or piece of code > that overwrites the default? > > > Best regards > > > Peter De Berdt > >I''m sure because this project doesn''t use any plugins. You might want to check project configuration. -Conrad> > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 24 Jul 2009, at 13:36, Conrad Taylor wrote:>> Loading development environment (Rails 2.3.3) >> >> include ActionView::Helpers::NumberHelper >> => Object >> >> number_to_currency(12.3) >> >> 12.3 >> >> Pretty weird stuff - one of my coworkers has the same problem on his >> setup. >> >> Can anyone reproduce this bug? >> >> I tried the above and here''s my transcript: >> >> Loading development environment (Rails 2.3.3) >> >> include ActionView::Helpers::NumberHelper >> => Object >> >> number_to_currency(12.3) >> => "$12.30" >> >> What platform are you using to execute the above? > > Are you sure you don''t use any old localization plugin or piece of > code that overwrites the default? > > > Best regards > > Peter De Berdt > > > I''m sure because this project doesn''t use any plugins. You might > want to check project configuration.Hehehe Conrad, I was actually addressing the plugin question to the original poster :-) Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Fri, Jul 24, 2009 at 4:41 AM, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org>wrote:> > On 24 Jul 2009, at 13:36, Conrad Taylor wrote: > > Loading development environment (Rails 2.3.3) >>> >> include ActionView::Helpers::NumberHelper >>> => Object >>> >> number_to_currency(12.3) >>> >> 12.3 >>> >>> Pretty weird stuff - one of my coworkers has the same problem on his >>> setup. >>> >>> Can anyone reproduce this bug? >> >> >> I tried the above and here''s my transcript: >> >> Loading development environment (Rails 2.3.3) >> >> include ActionView::Helpers::NumberHelper >> => Object >> >> number_to_currency(12.3) >> => "$12.30" >> >> What platform are you using to execute the above? >> >> >> Are you sure you don''t use any old localization plugin or piece of code >> that overwrites the default? >> >> >> Best regards >> >> Peter De Berdt >> >> > I''m sure because this project doesn''t use any plugins. You might want to > check project configuration. > > > Hehehe Conrad, I was actually addressing the plugin question to the > original poster :-) > > > Best regards > > > Peter De Berdt > >Peter, sorry about that. -Conrad> > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''m using Rails I18n, which seems to be the problem I cant figure out why its not working though, my en.yml faile looks legit: number: format: precision: 2 separator: '','' delimiter: ''.'' currency: format: unit: ''€'' format: ''%n%u'' separator: delimiter: precision: percentage: format: delimiter: "" precision: format: delimiter: "" human: format: delimiter: "" precision: 1 storage_units: # Storage units output formatting. # %u is the storage unit, %n is the number (default: 2 MB) format: "%n %u" units: byte: one: "Byte" other: "Bytes" kb: "KB" mb: "MB" gb: "GB" tb: "TB"