0
我使用的紅寶石1.8.7,軌2.3.17意外 '>' 與紅寶石錢寶石1.8.7
寶石 '錢'
Gemfile.lock的使用貨幣(6.0.1)
但在運行乘客它會顯示錯誤
/home/debadattap/.rvm/gems/[email protected]/gems/money-6.0.1/lib/money/bank/variable_exchange.rb:153: syntax error, unexpected '>'
fn = -> { @rates[rate_key_for(from, to)] = rate }
^
/home/debadattap/.rvm/gems/[email protected]/gems/money-6.0.1/lib/money/bank/variable_exchange.rb:153: odd number list for Hash
/home/debadattap/.rvm/gems/[email protected]/gems/money-6.0.1/lib/money/bank/variable_exchange.rb:179: syntax error, unexpected '>'
fn = -> { @rates[rate_key_for(from, to)] }
^
/home/debadattap/.rvm/gems/[email protected]/gems/money-6.0.1/lib/money/bank/variable_exchange.rb:179: odd number list for Hash
/home/debadattap/.rvm/gems/[email protected]/gems/money-6.0.1/lib/money/bank/variable_exchange.rb:212: syntax error, unexpected '>'
fn = -> {
^
/home/debadattap/.rvm/gems/[email protected]/gems/money-6.0.1/lib/money/bank/variable_exchange.rb:220: odd number list for Hash
/home/debadattap/.rvm/gems/[email protected]/gems/money-6.0.1/lib/money/bank/variable_exchange.rb:222: syntax error, unexpected kUNLESS, expecting '}'
unless file.nil?
^
/home/debadattap/.rvm/gems/[email protected]/gems/money-6.0.1/lib/money/bank/variable_exchange.rb:225: syntax error, unexpected '}', expecting kEND
/home/debadattap/.rvm/gems/[email protected]/gems/money-6.0.1/lib/money/bank/variable_exchange.rb:257: syntax error, unexpected '>'
fn = -> {
^
任何幫助表示讚賞。
感謝
你試過https://github.com/RubyMoney/money-rails?也許這個特定的Rails實現修復了這個錯誤。 –
@SebastianWramba ..感謝您的建議,我沒有嘗試過,因爲應用程序很舊,有時會失敗並顯示不受支持的寶石。 讓我試試這個 – Debadatt