DateHelpers .. don' display.. ?

HI

I don't understand what happen ..

if I use the script/console :

include ActionView::Helpers::DateHelper

=> Object

include GLoc

=> Object

time_ago_in_words(Time.now, include_seconds = false)

=> "moins d'une minute"

I get the correct answer..

but I I write in my view

<%= time_ago_in_words(Time.now, include_seconds = false) -%>

I get an error :wrong number of arguments (0 for 1)

trace app/helpers/application_helper.rb:96:in `' app/helpers/application_helper.rb:96:in `distance_of_time_in_words'

Seems like you've got something in application_helper overwriting the
default distance_of_time_in_words. What's on (and around) line 96 ?

Fred

Frederick Cheung wrote: