google-code-export / globalite

Automatically exported from code.google.com/p/globalite
1 stars 0 forks source link

distance_of_time_in_words wrong number of arguments (2 for 1) #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Rails 2.1
2. Globalite master from git
3. Any locale

time_ago_in_words(Time.current) works.
time_ago_in_words(@active_record_model.created_at) gives me an error:

ActionView::TemplateError (wrong number of arguments (2 for 1))

vendor/plugins/globalite/lib/rails/localized_action_view.rb:31:in `format'

Does anyone else have this problem? It only happens with activerecord objects. 
Their 'time' 
method returns an ActiveSupport::TimeWithZone, but that should not be a 
problem. When I 
remove globalite, it works.

Original issue reported on code.google.com by joost%sp...@gtempaccount.com on 9 Aug 2008 at 10:06