我使用大礼包我的购物车,我想多货币支持,因此我用下面的宝石在我的Gemfile施普雷辑阵汇率
gem "spree_multi_currency", :git => "git://github.com/pronix/spree-multi-currency.git"
和比没有捆绑安装
rake spree_multi_currency:install:migrations
rake db:migrate
然后使用以下代码加载货币
rake spree_multi_currency:currency:iso4217
现在我想从谷歌加载费率,并使美元作为默认货币CY 为我键入它在终端
rake spree_multi_currency:rates:google[USD]
,但它给错误,如
Loads currency data from Google using #<Spree::Currency:0xb967020>
http://www.google.com/ig/calculator?hl=en&q=1INR%3D%3FEUR 耙中止! 757:意外令牌 /home/tps/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/common.rb:155:in parse' /home/tps/.rvm/gems/ruby-2.0.0-p247/gems/json-1.8.1/lib/json/common.rb:155:in
解析' /home /tps/.rvm/gems/ruby-2.0.0-p247/bundler/gems/spree-multi-currency-0abaa72ab8ed/lib/tasks/spree_multi_currency.rake:126:in block (4 levels) in <top (required)>' /home/tps/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/relation/delegation.rb:13:in
each' /home/tps/.rvm /gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/relation/delegation.rb:13:in each' /home/tps/.rvm/gems/ruby-2.0.0-p247/bundler/gems/spree-multi-currency-0abaa72ab8ed/lib/tasks/spree_multi_currency.rake:122:in
block(3 levels)in' /home/tps/.rvm/gems /ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in eval' /home/tps/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in
' 任务:TOP => spree_multi_currency:价格:谷歌 (参见全部跟踪运行与--trace任务)
我想多货币支持我的购物车请帮忙。
在此先感谢