I added the following line in Gemfile.
gem 'american_date'
Rails is 3.2.13 and ruby is 1.9.3.
Everything's fine except that text field shows yyyy-mm-dd format instead of mm/dd/yyyy.
How do I set it correctly?
Sam
Edit:
I have the following configuration in the initializer.
Date::DATE_FORMATS.merge!(default: "%m/%d/%Y")
Time::DATE_FORMATS.merge!(default: "%m/%d/%Y %H:%M:%S")
However, the text field is not using the format. Why don't know why.