I get this error I18n::MissingInterpolationArgument
when running this code
<%= l Date.today, :format => :short %>
It has worked before, but now, at Ubuntu, with Rails 2.3.5
and Ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
it doesn't work anymore ...
Anyone to help?
Okey, got a quickfix for myself. Not the way I would have it, but it works
Added this to the en.yml file
date:
formats:
default: "%d.%m.%Y"
short: "%b %e"
long: "%e. %B %Y"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.