Forum: Ruby on Rails to_formatted_s(:rfc822) doesn't work

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
CSN (Guest)
on 2006-01-24 05:49
(Received via mailing list)
I do '@item.datetime.to_formatted_s(:rfc822)' and it


':db' doesn't work either, but ':short' does. How can
I output rfc822 without actually putting all that
awful % code in my templates? I've also tried this in
environment.rb, but it still doesn't work:

=> "%a, %d %b %Y %H:%M:%S %z")

Also, why does strftime() work, but not rfc822()?


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
This topic is locked and can not be replied to.