Ruby on rails 在Rails中,如何显示09年11月22日这样的日期?

Ruby on rails 在Rails中,如何显示09年11月22日这样的日期?,ruby-on-rails,Ruby On Rails,在Rails中,如何显示09年11月22日这样的日期 时间是:下午5:10查看第3.2节“添加日期和时间格式”,在该节中,您将使用“我相信”在语言环境文件中声明格式: # config/locales/custom.yml custom: time: formats: short: "%b %d, '%y" 并在您的视野中称之为: <p><%= l Time.now, :format => :short %></p> 查看第3

在Rails中,如何显示09年11月22日这样的日期


时间是:下午5:10

查看第3.2节“添加日期和时间格式”,在该节中,您将使用“我相信”在语言环境文件中声明格式:

# config/locales/custom.yml
custom:
  time:
    formats:
      short: "%b %d, '%y"
并在您的视野中称之为:

<p><%= l Time.now, :format => :short %></p>

查看第3.2节“添加日期和时间格式”,在该节中,您将使用我相信:

# config/locales/custom.yml
custom:
  time:
    formats:
      short: "%b %d, '%y"
并在您的视野中称之为:

<p><%= l Time.now, :format => :short %></p>

日期。今天。。。似乎失败了,名字错误?日期。今天。。。似乎失败了,是吗?