Forum: Ruby on Rails number_to_currency doesn't work...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fdb488647484e40f785dde7134afc6d1?d=identicon&s=25 Heinz Strunk (cojones)
on 2009-04-19 22:05
Hey,

I have no idea but for some reason number_to_currency doesn't work in my
application.

<%= number_to_currency(50, :unit => "&pound;", :separator => ",",
:delimiter => "", :format => "%n %u") %>

returns

50

Does anyone know what the problem could be?
3be29bee1806b097fc68621eb45f2e37?d=identicon&s=25 Ryan Waldron (rew)
on 2009-04-20 06:55
(Received via mailing list)
Works for me on 2.3.2.  What version/platform/etc.?  Any other relevant
details you can share?

On Sun, Apr 19, 2009 at 3:05 PM, Heinz Strunk <
Fdb488647484e40f785dde7134afc6d1?d=identicon&s=25 Heinz Strunk (cojones)
on 2009-04-21 11:29
Hey,

Rails 2.2.2
ruby 1.8.6

following plugins installed:
acts_as_tree
annotate_models
calendar_date_select
enum-column
globalize2

Do you need to know anything else?
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-04-21 12:06
(Received via mailing list)
On Apr 21, 10:29 am, Heinz Strunk <rails-mailing-l...@andreas-s.net>
wrote:
> globalize2
>
> Do you need to know anything else?

Have you tried disabling one plugin at a time (I'm going to guess
globalize2) ?

Fred
Fdb488647484e40f785dde7134afc6d1?d=identicon&s=25 Heinz Strunk (cojones)
on 2009-04-21 13:18
The application doesn't work (500 errror) anymore if I temporarily
delete the globalize2 folder in plugins.

Frederick Cheung wrote:
>
> Have you tried disabling one plugin at a time (I'm going to guess
> globalize2) ?
>
> Fred
Fdb488647484e40f785dde7134afc6d1?d=identicon&s=25 Heinz Strunk (cojones)
on 2009-04-21 21:16
I couldn't find any "number_to_currency" in globalize2 (besides two
calls in a test) so how could globalize2 possibibly have an effect on
it?

Heinz Strunk wrote:
> The application doesn't work (500 errror) anymore if I temporarily
> delete the globalize2 folder in plugins.
>
> Frederick Cheung wrote:
>>
>> Have you tried disabling one plugin at a time (I'm going to guess
>> globalize2) ?
>>
>> Fred
Fdb488647484e40f785dde7134afc6d1?d=identicon&s=25 Heinz Strunk (cojones)
on 2009-04-22 11:33
My I18n.load_path was overridden and number_to_currency apparently needs
something from it. After I removed that line everything worked like a
charm :)
This topic is locked and can not be replied to.