search for: fecha_completa

Displaying 1 result from an estimated 1 matches for "fecha_completa".

2008 Apr 04
0
Date.to_s format with time_ago_in_words
...39;%a, %d %b, %I:%M%p'') + '' ('' + time_ago_in_words(date) + '')'' } ) But it keeps giving this error message: undefined method ''time_ago_in_words'' for main:Object It works if I do it as a application helper: # application_helper.rb def fecha_completa(date) date.strftime(''%a, %d %b, %I:%M%p'') + '' ('' + time_ago_in_words(date) + '')'' end but not as a Date format. What am I doing wrong? Is this not possible? Thanks, Jesús Dugarte.- http://jdugarte.blogspot.com/ -- Posted via http://www.rub...