RubyMoney/money — Issue #143: currency.rb:152:in `initialize': Unknown currency `btc' (Money::Currency::UnknownCurrency)
Author: barmstrong
Created: 2012-02-22 04:31:03+00:00
State: open

ruby-1.9.2-p180 :003 > Money::Currency::TABLE[:btc] = {
ruby-1.9.2-p180 :004 > :priority => 1,
ruby-1.9.2-p180 :005 > :iso_code => "BTC",
ruby-1.9.2-p180 :006 > :name => "Bitcoin",
ruby-1.9.2-p180 :007 > :symbol => "BTC",
ruby-1.9.2-p180 :008 > :subunit => "Cent",
ruby-1.9.2-p180 :009 > :subunit_to_unit => 100000000,
ruby-1.9.2-p180 :010 > :separator => ".",
ruby-1.9.2-p180 :011 > :delimiter => ","
ruby-1.9.2-p180 :012?> }
=> {:priority=>1, :iso_code=>"BTC", :name=>"Bitcoin", :symbol=>"BTC", :subunit=>"Cent", :subunit_to_unit=>100000000, :separator=>".", :delimiter=>","}

ruby-1.9.2-p180 :001 > Money::Currency::TABLE[:btc]
=> {:priority=>1, :iso_code=>"BTC", :name=>"Bitcoin", :symbol=>"BTC", :subunit=>"Cent", :subunit_to_unit=>100000000, :separator=>".", :delimiter=>","}

ruby-1.9.2-p180 :002 > Money.default_currency = Money::Currency.new(:btc)
Money::Currency::UnknownCurrency: Unknown currency `btc'
from /Users/barmstrong/.rvm/gems/ruby-1.9.2-p180@bitbank/gems/money-4.0.2/lib/money/currency.rb:152:in `initialize'
from (irb):2:in `new'
from (irb):2
from /Users/barmstrong/.rvm/gems/ruby-1.9.2-p180@bitbank/gems/railties-3.2.1/lib/rails/commands/console.rb:47:in `start'
from /Users/barmstrong/.rvm/gems/ruby-1.9.2-p180@bitbank/gems/railties-3.2.1/lib/rails/commands/console.rb:8:in `start'
from /Users/barmstrong/.rvm/gems/ruby-1.9.2-p180@bitbank/gems/railties-3.2.1/lib/rails/commands.rb:41:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
ruby-1.9.2-p180 :003 >

Any ideas? I tried setting the currency in an initializer, in environment.rb both before and after `Application.initialize!`, no luck. This rails 3.2 with the money 4.0.2. Thanks for the help!

Thanks for the help!