繁体   English   中英

I18n :: MissingInterpolationArgument with I18n.l

[英]I18n::MissingInterpolationArgument with I18n.l

运行此代码时出现此错误I18n::MissingInterpolationArgument

<%= l Date.today, :format => :short %>

它以前曾经工作过,但现在在Ubuntu上使用Rails 2.3.5Ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]不再起作用了...

有人帮忙吗?

Okey,为自己准备了一个快速修复程序。 不是我想要的方式,但是它有效

将此添加到en.yml文件

  date:                   
    formats:              
      default: "%d.%m.%Y" 
      short: "%b %e"      
      long: "%e. %B %Y"   

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM