# DateHelpers .. don' display..?

**URL:** <https://www.ruby-forum.com/t/datehelpers-don-display/138137>\
**Category:** Rails\
**Created:** [May 20, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/datehelpers-don-display/138137 "2008-05-20T15:32:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [May 20, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/datehelpers-don-display/138137/1 "2008-05-20T15:32:08Z")

</div>

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 no argument is passed … ?? what’s wrong in the view ?

thanks for your advices

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [May 20, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/datehelpers-don-display/138137/2 "2008-05-20T15:39:50Z")

</div>

On 20 May 2008, at 14:32, Kad K. wrote:

> > > time\_ago\_in\_words(Time.now, include\_seconds = false)  
> > > 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

---

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [May 20, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/datehelpers-don-display/138137/3 "2008-05-20T17:30:43Z")

</div>

Frederick C. wrote:

> On 20 May 2008, at 14:32, Kad K. wrote:
> 
> > > > time\_ago\_in\_words(Time.now, include\_seconds = false)  
> > > > 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

thanks a lot Fred… I forgot to delete a previous  
distance\_of\_time\_in\_words method used before implementing the GLoc  
plugin for translation…
