search for: date_ago

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

Did you mean: date_add
2008 Apr 04
0
Date.to_s format with time_ago_in_words
Hello, Following this post''s instructions (http://railspikes.com/tags/date) I''m trying to define a Date format like this: ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.update(:date_ago => lambda { |date| date.strftime(''%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 appli...