Because that's how it's coded.
from: I18n::Backend.localize...
def localize(locale, object, format = :default)
raise ArgumentError, "Object must be a Date, DateTime or Time
object. #{object.inspect} given." unless object.respond_to?(:strftime)
On Oct 12, 4:20 pm, Fernando Perez <[email protected]>
wrote:
> I's all in the title!
>
> I find it very painful, to always have to supply a date so that I18n.l
> doesn't miserably fail. Why doesn't simply return ""???
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---