Here is a quick, clean and easy way to get use from strftime on your date/time fields. Create a file called date_format.rb in the config/initializers directory and add the following code:
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS|>.merge!(
:datetime_military => '%Y-%m-%d %H:%M',
:datetime => '%Y-%m-%d %I:%M%P',
:time => '%I:%M%P',
:time_military => '%H:%M%P',
:datetime_short => '%m/%d %I:%M'
)Then in your views, you can do the following:
@object.time_field.to_s(:datetime) # Or any other format you created

March 17th, 2010 at 6:21 pm
Nice idea. I had to trim out the |> to get it to work.
March 20th, 2010 at 4:19 pm
Yea, I am not sure why that is showing up…