I want to change default date format in Rails. Format should be y/m/d . I add following code into my environment.rb
ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.
merge!(:default => '%Y/%m/%d')
But it didn't work. How can I change default format? I use rails 2.3.8 version
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…