在我的 Rails 应用程序视图中,我有一行:
<%= number_to_human_size(4871156, :precision => 3) %>
which gives no implicit conversion of nil into String
error when other translations are selected other than english. 但是,线
<%= number_to_human_size(487, :precision => 3) %>
给
487 Bytes
使用 Rails 3.2.13 和 Ruby 2.0.0。可能是什么问题?
谢谢 :)-