写在config/initialize/date_time.rb中
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(
:default => "%m/%d/%Y %I:%M %p",
:date => "%m/%d/%Y",
:time => "%I:%M %p",
:date_without_year => "%m/%d"
)